Steps to Set Git Username and Password in GitBash
Step 1: After the successful Installation of Git on your system, you have to right-click wherever you want to open the Git tab. Click on the Git Bash Here icon. Now here we will see the location of where the program is opened when the window opens.
Step 2: In the Git Bash window, type the below command and press enter. This will configure your Username in Git Bash.
$ git config --global user.name "w3wiki"
Step 3: After that, you will have to configure your email. For that, type
$git config --global user.email "GFGexample@gmail.orgg"
Step 4: To set your password, type the below command as depicted:
$git config --global user.password "1234321"
Step 5: To save the credentials forever, type the below command as depicted:
$ git config --global credential.helper store
This is how you set git username and password in git bash.
To check the inputs, type the below command as depicted:
$ git config --list --show-origin
How to Set Git Username and Password in GitBash?
While working with Git, setting up your username and password is important for various operations like pushing and pulling changes to and from remote repositories. In this article, we’ll walk you through the process of configuring your Git username and password in Git Bash.
Contact Us