Stuart
1/23/2020 - 4:29 AM

Common workflow for short-lived topic branches

# 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