Created
November 1, 2018 00:58
-
-
Save stephencweiss/3509dafd7fb6a9fd92613b75ff575acc to your computer and use it in GitHub Desktop.
Common Git commands for Feature Branch
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
// 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