Skip to content

Instantly share code, notes, and snippets.

@hrs
Created July 18, 2017 12:59
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 hrs/fa3e90afe12da7ffbf8e6bd63c51d6cf to your computer and use it in GitHub Desktop.
Save hrs/fa3e90afe12da7ffbf8e6bd63c51d6cf to your computer and use it in GitHub Desktop.
Updating your dsss17 repo while preserving your changes
# Supposing that you're starting on the master branch...
# Create a new branch and switch to it:
git checkout -b my-work
# Commit your changes on that branch:
git add .
git commit -m "My work so far!"
# Update the master branch:
git checkout master
git pull origin master
# Update your branch with the changes on master:
git checkout my-work
git rebase master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment