Make your Git client remember your username and password
Wed, Mar 14, 2012
When you clone, push and pull any file to your repository, your Git client will prompt you for your username and password.
git clone http://john@10.0.2.15/companyproject.git
The feature “remember my credentials” might not be implemented by your git client.
The current workaround is to include your username and/or password in the url.
If your repository is located at :
You can include your username in the url :
git clone http://john@10.0.2.15/companyproject.git
The password can also be included in the url. The password will be stored in plain text on your computer.
git clone http://john:ex56shs@10.0.2.15/companyproject.git
git clone http://john@10.0.2.15/companyproject.git
The feature “remember my credentials” might not be implemented by your git client.
The current workaround is to include your username and/or password in the url.
If your repository is located at :
You can include your username in the url :
git clone http://john@10.0.2.15/companyproject.git
The password can also be included in the url. The password will be stored in plain text on your computer.
git clone http://john:ex56shs@10.0.2.15/companyproject.git
It is possible that users change their own password, without the administrator has access?
Hello Rodrigo, it is not possible yet that users change their own password. If you are interested by this feature, please create a new issue on the issue tracker : https://github.com/smart-mobile-software/gitstack/issues?direction=desc&labels=&milestone=&page=1&sort=created&state=open
Users can change their password but must have the admin access.
If you already cloned a repository and wish to add your credentials to the URL, you need to edit the “/your-repo/.git/config” file
Can I restrict a user from accessing a particular class file in a reposirory
It is unfortunately not possible with git.
Thanks!