Last active
April 27, 2016 14:17
-
-
Save sejas/78ecf24c82ab34735a39b520d273a737 to your computer and use it in GitHub Desktop.
Git branches tutorial
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
# Start a new feature | |
git checkout -b new-feature master | |
# Edit some files | |
git add <file> | |
git commit -m "Start a feature" | |
# Merge in the new-feature branch | |
git checkout master | |
git merge new-feature | |
git branch -d new-feature |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment