Created
July 18, 2017 12:59
-
-
Save hrs/fa3e90afe12da7ffbf8e6bd63c51d6cf to your computer and use it in GitHub Desktop.
Updating your dsss17 repo while preserving your changes
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
# 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