Skip to content

Instantly share code, notes, and snippets.

@jasenmichael
Created December 29, 2020 03:16
Show Gist options
  • Save jasenmichael/2dd9f922b1260a08227d9077c8c8b900 to your computer and use it in GitHub Desktop.
Save jasenmichael/2dd9f922b1260a08227d9077c8c8b900 to your computer and use it in GitHub Desktop.
# Start a new feature
git checkout -b new-feature master
# Edit some files
git add <file>
git commit -m "Start a feature"
# Edit some files
git add <file>
git commit -m "Finish 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