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 ==== | ==== Pushing your work ==== | ||
| - | At this point, you can push this new branch to your GitHub fork: | + | You can continue adding and committing (related) work to this feature branch and, once you're satisfied, you can push that branch to your personal |
| < | < | ||
| - | $ git push rpjday/ | + | $ git push rpjday |
| </ | </ | ||
| ==== And over At GitHub ==== | ==== And over At GitHub ==== | ||
| - | Provided you're logged into your account at GitHub, you'll suddenly see the appearance of a new branch '' | + | 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, you will have to perform the two earlier steps to fetch and merge your changes into your local clone into the '' | + | If all goes well and your change is accepted and committed |
| < | < | ||
| - | $ git fetch progit | + | $ git fetch libpod |
| - | $ git merge progit/master | + | $ git merge libpod/master |
| </ | </ | ||
| - | In addition, | + | In addition, if you have no further |
| + | |||
| + | < | ||
| + | $ git branch -d rpjday/ | ||
| + | </ | ||
| + | |||
| + | ==== Adjusting your local branch ==== | ||
| + | |||
| + | Given the possibility that your pull request might provoke some comments about possible improvements, | ||
| + | |||
| + | < | ||
| + | $ git push -f rpjday rpjday/ | ||
| + | </ | ||