Created
September 13, 2022 10:29
-
-
Save abdulwahidgul24085/5473f6e2007cb9d2fe23f37ea857a5a8 to your computer and use it in GitHub Desktop.
Github AccessToken Another Account
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
token: github-oauth-token | |
username: github-username | |
email: github-email | |
get repo name | |
https://github.com/<username>/<repo>.git | |
clone the repo with the token in the URL | |
git clone https://<token>@github.com/<username>/<repo>.git | |
set the name of the contributor | |
git config --local user.email "<email>" | |
git config --local user.name "<username>" | |
set the remote url with the following pattern | |
git remote set-url origin https://<username>:<token>@github.com/<username>/<repo>.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment