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:14] – [Making some local changes] rpjday | git_github_workflow [2020/01/27 17:03] (current) – [Clone your personal fork to your local machine] rpjday |
|---|
| ==== 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, ''rpjday/libpod''), you need to make one more copy of the repository -- this one will be clone of your personal fork to your //local// machine, which represents the working tree in which you create new branches and make local changes that you'll push to your GitHub fork for eventual incorporation into the public project, but here's the trick for clarity. | Once you've made that personal GitHub fork (agin, in my case, ''rpjday/libpod''), you need to make one more copy of the repository -- this one will be a clone of your personal fork to your //local// machine, which represents the working tree in which you create new branches and make local changes that you'll push to your GitHub fork for eventual incorporation into the public project, but here's the trick for clarity. |
| |
| 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 ''origin'' -- I'll use the remote name of ''rpjday'' to clearly identify that this is the remote corresponding to my personal fork over at GitHub, not the public project: | 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 ''origin'' -- I'll use the remote name of ''rpjday'' to clearly identify that this is the remote corresponding to my personal fork over at GitHub, not the public project: |
| $ mkdir podman/libpod | $ mkdir podman/libpod |
| $ cd podman/libpod | $ cd podman/libpod |
| $ git clone https://github.com/rpjday/libpod git | $ git clone -o rpjday https://github.com/rpjday/libpod git |
| </code> | </code> |
| |