Connect to GitHub repo from Linux git CLI

Get repo HTTPS URL from github repo page -> Code -> Local -> HTTPS

Clone repo via:

git clone <https URL here>

Set git identity:

git config --global ""

git config --global "Your Name"

In GitHub Account owning the repo, go to

Setting -> Developer Setting -> Personal access tokens -> Tokens (classic)

Generate Token with prefered settings:

Note: E.g. what machine will use this token

Scopes: you probably only need the "repo" access scopes

Copy token and save it somewhere OUTSIDE of the repository on your local machine

In repository, git add, git commit, git push

Enter git username and token for authentication

1 Antwort zu “Connect to GitHub repo from Linux git CLI”

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert