Skip to content

Instantly share code, notes, and snippets.

@eouthwaite
Created February 1, 2016 18:25
Show Gist options
  • Save eouthwaite/085923cf8ea012d6798c to your computer and use it in GitHub Desktop.
Save eouthwaite/085923cf8ea012d6798c to your computer and use it in GitHub Desktop.
Simple procedure for updating a git repo

Git merge/rebase procedure

Having finished an update, these are the steps to merge back into the develop branch:

  1. Pull any changes on github (you might want to stash any workings)
git checkout develop
git pull
  1. Apply changes to updated branch:
git checkout my-update-branch
git rebase develop my-update-branch
  1. Merge changes
git checkout develop
git merge my-update-branch
  1. Push back to github
git push

This is the point to create (or resume) a working branch and run git stash pop to retrieve any stashed settings files

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