Thursday, February 28, 2019

Sick of Keying in Username and Password During Pull and Push in GIT... Here is the solution

Hi everyone, let me take this opportunity to give you some details on two of the commands from GIT

1. git config credential.helper store
2. git push <clone URL of the repository>

Normally these two git utilities can be used for configuring your username and password once and the push and pull operation to and from GIT repository can be done multiple times without keying them.

Here is how we configure

Before we configure, please have the clone URL of the repository handy...

Move to the local repository, which means to the folder where your .git folder resides using a terminal and paste the command below
> git config credential.helper store


The above command would do nothing from the user perspective, now copy paste second command at the prompt as mentioned below... use your repository clone URL, in my case the URL is..

https://github.com/ravaneswaran/git-tutorial.git
> git push https://github.com/ravaneswaran/git-tutorial.git
The above command would prompt you to provide the username and password, provide your credentials to have them saved locally.


Try modifying some files and push those to the remote repo... you do not have to key in your credentials again

Well this concludes this post, hope this helped...

No comments:

Post a Comment

Addressing Modes of 8080 / 8085 MicroProcessor

Hi,   In this post I am going to talk about different addressing modes of 8080/8085...without much talking let us get into the topic.   Ther...