Created
December 19, 2019 10:57
-
-
Save pamaury/f916a4432cbc84adc044698f50d8a8fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Comment gérer un conflit git, du type "a merge would override your changes": | |
1) enregistrer les modifications locales: git stash | |
2) faire le merge: git pull | |
3) réappliquer ls modifications locales: git stash pop | |
4) maintenant ils y a peut-être des conflicts, git dit: | |
auto-merge blabla | |
CONFLICT blabla | |
5) pour chacun des fichiers avec un conflit, l'ouvrir et chercher les conflits, | |
c'est toujours du type: | |
<<<<< upstream | |
la version des autres | |
===== | |
ta version | |
>>>>> stashed | |
Il faut enlever les <<<<, ==== et >>>> et corriger le problème | |
6) une fois fait, faire pour chaque fichier avec un conflit: git add fichier |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment