add advice for cherry-pick
This commit is contained in:
parent
863f96f7db
commit
f2bbdee9c8
14
HowtoGit.md
14
HowtoGit.md
|
@ -259,6 +259,20 @@ $ git checkout master
|
||||||
$ git cherry-pick <SHA1 du commit>
|
$ git cherry-pick <SHA1 du commit>
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
Si tout se passe bien, il ne demandera rien de plus sauf s'il y a des conflits. Dans ce cas, il faut éditer les fichiers où la commande `git status` indique "modifié des deux côtés : conflit.txt".
|
||||||
|
|
||||||
|
Après avoir effectué ces modifications, il faudra lancer la commande suivante pour confirmer l'action :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
$ git cherry-pick --continue
|
||||||
|
~~~
|
||||||
|
|
||||||
|
Sinon pour tout anuller :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
$ rm .git/CHERRY_PICK_HEAD
|
||||||
|
~~~
|
||||||
|
|
||||||
### gitignore
|
### gitignore
|
||||||
|
|
||||||
<https://git-scm.com/docs/gitignore>
|
<https://git-scm.com/docs/gitignore>
|
||||||
|
|
Loading…
Reference in a new issue