Skip to content

Instantly share code, notes, and snippets.

@JPvRiel
Last active June 22, 2019 08:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JPvRiel/5c3c0f839af94f5cc041c5727f5ffee2 to your computer and use it in GitHub Desktop.
Save JPvRiel/5c3c0f839af94f5cc041c5727f5ffee2 to your computer and use it in GitHub Desktop.
git workflow

Merging

Merge master into branch

A good idea if upstream has had commits and, to catch up, you need to test your feature branch with changes from upstream included

git checkout feature
git pull origin master

Or if local master is already up to date with origin

git checkout feature
git merge master

See:

Merge branch into master

Once happy a feature is complete, tested and ready to go into master

git checkout master
git pull origin master
git merge feature
git push origin master

See:

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