Skip to content

Instantly share code, notes, and snippets.

@stephencweiss
Created November 1, 2018 00:58
Show Gist options
  • Save stephencweiss/3509dafd7fb6a9fd92613b75ff575acc to your computer and use it in GitHub Desktop.
Save stephencweiss/3509dafd7fb6a9fd92613b75ff575acc to your computer and use it in GitHub Desktop.
Common Git commands for Feature Branch
// Prior to cutting a new branch
git fetch origin
git reset --hard origin/master
// Cut a new branch
git checkout -b MyNewFeature || git checkout -b Issue#124
git push origin MyNewFeature
//Helpful
git stash
git stash pop || git stash apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment