Last active
October 30, 2018 14:25
-
-
Save mklarsen/58604185ae9e4c468c440685f3d52fb7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
git config --global user.name "Full Name" | |
git config --global user.email "[email protected]" | |
##################### | |
## Start in master ## | |
##################### | |
git checkout master | |
git pull | |
####################################################### | |
# Create new feature in your code/bugfix ## | |
# switch/create to feature branch ex. (feature-XXXX) ## | |
####################################################### | |
git checkout -b feature-XXXX | |
git pull | |
########################################################## | |
# Then write some code inf the feature branch and commit # | |
########################################################## | |
git commit | |
gip push | |
###################################################### | |
# When done then, merge feature-XXXX back to master # | |
###################################################### | |
git checkout master | |
git merge --no-ff feature-XXXX | |
################################################################ | |
# All done, ready for production... merge master to production # | |
################################################################ | |
git checkout production | |
git pull | |
git merge --no-ff master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment