Last active
April 26, 2019 15:20
-
-
Save koromerzhin/0c008f68f9e12759fa9c0f7d1b8712c1 to your computer and use it in GitHub Desktop.
fusion branch
This file contains 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
# On clone les dépots | |
git clone projet1 | |
git clone projet2 | |
cd projet1 | |
# On ajoute le projet2 comme source dans le projet1 | |
git remote add projet2 ../projet2 | |
git fetch projet2 | |
# On liste les branches du dépôt 2 | |
git branch -a | |
# On crée dans le dépôt 1 la branche à fusionner (par exemple master) | |
git branch projet2-master projet2/master | |
# A - On fusionne | |
git merge projet2-master | |
# B - On push | |
git checkout projet2-master | |
git push origin project2-master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment