Hi everyone, let me take this opportunity to give you some details on two of the commands from GIT
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
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
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...
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.gitThe 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