'How to relogin in the git
I have new account on some_url_git and old account is removed. How can I re-login?
When I try in command line example :
git fetch
Then I have:
remote: TF401019: The Git repository with name or identifier WebProject does not exist or you do not have permissions for the operation you are attempting.
fatal: repository 'some_url_git ' not found
Solution 1:[1]
I removed the user/password entries in .git/config or ~/.gitconfig or ~/.git-credentials
and I was asked to re-login when I did the git push next.
That was what worked for me on Linux.
Solution 2:[2]
Please follow the below steps
git config --global user.name "git hub user name "
git config --global user.email "git hub email "
then you need to check credential are added or not for that you need to run below commands
git config user.name --> it will throw your git hub user name
git config user.email --> it will trow your git hub email
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | jacob |
| Solution 2 | sachin_ur |
