It can happen you do a "git pull" and notice another user account is logged into git.
In this case this is what you can do to change the url, to use your user and continue working:
See current git url:
git config --get remote.origin.url
Change the git url with your user:
git remote set-url origin https://{new url with username replaced}
Source: https://stackoverflow.com/questions/22844806/change-git-username-in-terminal
No comments:
Post a Comment