Skip to content

Instantly share code, notes, and snippets.

@keltia
Last active March 9, 2016 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keltia/44676cde22ee902266ad to your computer and use it in GitHub Desktop.
Save keltia/44676cde22ee902266ad to your computer and use it in GitHub Desktop.
Quick & dirty...

Quick & dirty

Sur github.com

fork de foo/bar en moi/bar

En local

git clone github.com/moi/bar
git remote add upstream github.com/foo/bar      # pour les git fetch d'après
git fetch upstream                              # récupérer toutes réf. des branches
                                            # distantes

modifs :

git checkout -b ma-feature                      # branche locale
git commit
git commit

un petit git push --all de temps en temps histoire de "backuper" ta branche

Re-synchro distante

git checkout master
git fetch upstream master               # on récupère le master distant
git merge upstream/master               # merge dans ton master

Merge dans ton travail

git checkout ma-feature
git merge master

Sur github.com

Faire une demande de pull request, il va te proposer ma-feature par défaut

Suggestion :

utiliser git flow

http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment