Skip to content

Instantly share code, notes, and snippets.

@mklarsen
Last active October 30, 2018 14:25
Show Gist options
  • Save mklarsen/58604185ae9e4c468c440685f3d52fb7 to your computer and use it in GitHub Desktop.
Save mklarsen/58604185ae9e4c468c440685f3d52fb7 to your computer and use it in GitHub Desktop.
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