Copier des commits depuis un autre repo
https://stackoverflow.com/questions/37471740/how-to-copy-commits-from-one-git-repo-to-another
A savoir
Section titled “A savoir”-
Le sha-of-commit est le numéro unique de commit.
-
Lorsque vous faites
git log --all --oneline --graph --decoratevous obtenez des lignes comme ceci* ab62fdf init - installation laravel -
Le sha-of-commit est ab62fdf
Appliquer les commits par ordre chronologique.
Section titled “Appliquer les commits par ordre chronologique.”# add the old repo as a remote repositorygit remote add oldrepo https://github.com/path/to/oldrepo
# get the old repo commitsgit remote update
# examine the whole treegit log --all --oneline --graph --decorate
# copy (cherry-pick) the commits from the old repo into your new local onegit cherry-pick sha-of-commit-onegit cherry-pick sha-of-commit-twogit cherry-pick sha-of-commit-three
# check your local repo is correctgit log
# send your new tree (repo state) to githubgit push origin master
# remove the now-unneeded reference to oldrepogit remote remove oldrepo