Skip to content

Instantly share code, notes, and snippets.

@sejas
Last active April 27, 2016 14:17
Show Gist options
  • Save sejas/78ecf24c82ab34735a39b520d273a737 to your computer and use it in GitHub Desktop.
Save sejas/78ecf24c82ab34735a39b520d273a737 to your computer and use it in GitHub Desktop.
Git branches tutorial
# 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
git tag -a v1.0.3 -m "here we did an amazing change"
git commit -m "updating files and tag"
git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment