Forked from atainton/merging-pull-requests-using-the-command-line.txt
Created
April 11, 2017 08:57
-
-
Save RitterNorbert/70e868b0b5708ea5374b1fad050f7c68 to your computer and use it in GitHub Desktop.
Merging pull requests using the command line
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
credit to https://github.com/mdkrog | |
git checkout development | |
git pull origin development | |
git checkout your-local-branch | |
git rebase -i development | |
git push -f origin your-local-branch | |
git checkout development | |
git merge your-local-branch --ff-only | |
git push origin development | |
git push origin --delete <branch_name> -> delete remote branch | |
git branch -d <branch_name> -> to delete local branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment