Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to change git account in git bash?


Asked by Abby Camacho on Dec 04, 2021 Git



No need to remove the credential helper which is practical for caching user's password. My situation is I had change my gitlab.com's account email, then my local git repository can not push. saTya 's answer worked, but in windows 10 1903, it is Control Panel -> Credential Manager -> Windows Credentials -> Generic Credentials.
Thereof,
You’ve probably had to run the following commands to change your user account name and email: git config --global user.name username git config --global user.email email This will set the global config to the new username and email. However, another issue is the result.
In this manner, Alternately, you can set the %HOME% environment variable using the following command in Windows PowerShell: Start a new session of Git Bash and run the following commands to change the current directory to the user’s %HOME% and verify the new path:
One may also ask,
https, not ssh): 1 Generate a Personal Access Token 2 Start a git bash session within your repo 3 run git config --global credential.helper wincred 4 run git pull 5 give PersonalAccessToken as the username 6 give the Personal Access Token as the password
Similarly,
Git Bash is a package that installs Bash, some common bash utilities, and Git on a Windows operating system. In Git Bash the user interacts with the repository and git elements through the commands. What is Git?