Skip to content

Second Profile add in contributors in first Profile #65168

Answered by arafajs
khe4oyan asked this question in Profile
Discussion options

You must be logged in to vote

1. Remove the remote URL for the second account:
git remote remove origin
2. Remove the credentials for the second account:
git credential-manager reject https://github.com
3. Re-add the remote URL for your main account:
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
4. Verify that the origin remote points to your main account:
git remote -v
5. Set the username and email to use your main account details:

git config user.name "YOUR_USERNAME"
git config user.email "your_email@example.com"

6. Push to origin to make sure you are pushing with your main account:
git push origin master

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@khe4oyan
Comment options

Answer selected by khe4oyan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants