*Memos:
- My post explains how to clone a private repository with FGPAT(Fine-Grained Personal Access Token) from Github.
- My post explains useful IPython magic commands.
With PAT(Personal Access Token), you can clone a private repository from your account and you can also clone a private repository from your organization if you're its owner or member:
*Memos:
- You need to generate a PAT and add it to the command below. *Organization doesn't have PAT or FGPAT generator.
- A PAT cannot select permissions more precisely(finely) than FGPAT.
-
pat
is PAT. -
fgpat
is FGPAT. -
usr
is username. -
org
is organization. -
repo
is repository.
git clone https://<pat or fgpat>@github.com/<usr or org>/<repo>.git
<How to generate a FGPAT from your account>
Press Generate new token (classic) from Personal access tokens/Tokens(classic)/Generate new token:
Fill Note, then check repo. *If repo is not checked, you cannot clone a private repository:
This is the command with the PAT generated above:
git clone https://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@github.com/<usr or org>/<repo>.git
Top comments (0)