Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_github_workflow [2020/01/27 15:03] – [Making some local changes] rpjday | git_github_workflow [2020/01/27 17:03] (current) – [Clone your personal fork to your local machine] rpjday | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| ==== Clone your personal fork to your local machine ==== | ==== Clone your personal fork to your local machine ==== | ||
| - | Once you've made that personal GitHub fork (agin, in my case, '' | + | Once you've made that personal GitHub fork (agin, in my case, '' |
| Since you'll (shortly) be working with two remotes for this workflow, when you clone your personal fork, select a remote name other than the default of '' | Since you'll (shortly) be working with two remotes for this workflow, when you clone your personal fork, select a remote name other than the default of '' | ||
| Line 28: | Line 28: | ||
| $ mkdir podman/ | $ mkdir podman/ | ||
| $ cd podman/ | $ cd podman/ | ||
| - | $ git clone https:// | + | $ git clone -o rpjday |
| </ | </ | ||
| Line 145: | Line 145: | ||
| < | < | ||
| - | $ git commit -a -m "silly changes to README.md" | + | $ git commit -a -m " |
| - | [topic/rpjday/issue42 77fad5f] topic/ | + | [rpjday/README_changes b1a09348] README.md: silly changes |
| - | 1 file changed, | + | 1 file changed, |
| $ | $ | ||
| </ | </ | ||
| + | ==== Pushing your work ==== | ||
| - | < | + | You can continue adding and committing |
| - | $ git show | + | |
| - | commit 77fad5f0aadd229628baa7811b0b49c7580d96f0 | + | |
| - | Author: Robert P. J. Day < | + | |
| - | Date: Wed Feb 14 07:06:42 2018 -0500 | + | |
| - | fix issue42 | + | < |
| - | + | $ git push rpjday rpjday/README_changes | |
| - | diff --git a/README.asc b/ | + | |
| - | index d7810fd..126bfd4 100644 | + | |
| - | --- a/ | + | |
| - | +++ b/ | + | |
| - | @@ -1,4 +1,4 @@ | + | |
| - | -= Pro Git, Second Edition | + | |
| - | += Pro Git, Second Edition (rday change) | + | |
| - | + | ||
| - | | + | |
| - | + | ||
| - | $ | + | |
| </ | </ | ||
| - | ==== Pushing your work ==== | + | ==== And over At GitHub |
| - | At this point, you can push this new branch to your GitHub fork: | + | Provided you're logged into your account at GitHub, you'll suddenly see the appearance of a new branch '' |
| + | |||
| + | If all goes well and your change is accepted and committed (in this case, into the '' | ||
| < | < | ||
| - | $ git push rpjday/README_changes | + | $ git fetch libpod |
| + | $ git merge libpod/master | ||
| </ | </ | ||
| - | ==== And over At GitHub ==== | + | In addition, if you have no further need of that local feature, you can delete it: |
| - | Provided you're logged into your account at GitHub, you'll suddenly see the appearance of a new branch | + | < |
| + | $ git branch -d rpjday/ | ||
| + | </ | ||
| + | |||
| + | ==== Adjusting | ||
| - | If all goes well and your change is accepted and committed, you will have to perform | + | Given the possibility that your pull request might provoke some comments about possible improvements, you can make those local improvements, |
| < | < | ||
| - | $ git fetch progit | + | $ git push -f rpjday rpjday/README_changes |
| - | $ git merge progit/master | + | |
| </ | </ | ||
| - | |||
| - | In addition, you can now delete the '' | ||