git_and_github_notes
This is an old revision of the document!
Table of Contents
Git and GitHub Notes
Pull Requests from the Command Line
Assuming…
- the local repository contains references to remotes “origin” and “upstream”, and
- changes start with commit “abc1234” on branch “master”,
then, push changes to origin and request pull from upstream master:
git push origin git request-pull abc1234 upstream master
Accepting Pull Requests from the Command Line
Step 1: From your project repository, check out a new branch and test the changes.
git checkout -b jtkorb-master master git pull https://github.com/jtkorb/jtkorb.github.io.git master
Step 2: Merge the changes and update on GitHub.
git checkout master git merge --no-ff jtkorb-master git push origin master
git_and_github_notes.1520192526.txt.gz · Last modified: 2018/03/04 11:42 by jtkorb