Skip to content

Instantly share code, notes, and snippets.

@PierreTurnbull
Last active August 30, 2018 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PierreTurnbull/be58417922393a5f2dd2a8f9a2f4ccb6 to your computer and use it in GitHub Desktop.
Save PierreTurnbull/be58417922393a5f2dd2a8f9a2f4ccb6 to your computer and use it in GitHub Desktop.
FROM MASTER BRANCH:
// create a new branch and navigate to it
git checkout -b branch_name
// stage the current directory
git add .
// commit the staged files with a message
git commit -m "message"
// navigate to the branch master
git checkout master
// pull all changes from the remote branch
git pull origin master
// merge the changes committed in the previously created branch into the current branch (master)
git merge --no-ff branch_name
// push the changes to the remote repository
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment