Last active
August 30, 2018 16:01
-
-
Save PierreTurnbull/be58417922393a5f2dd2a8f9a2f4ccb6 to your computer and use it in GitHub Desktop.
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
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