Saving your login details in TortoiseGit is pretty easy. Saves having to type in your username and password every time you do a pull or push.
1. Create a file called _netrc with the following contents:
machine github.com
login <login>
password <password>
2. Copy the file to C:\Users\<your-username> (or another location; this just happens to be where I’ve put it)
3. Go to command prompt, type setx home C:\Users\<your-username>
Note: if you’re using something earlier than Windows 7, the setx command may not work for you. Use set instead and add the home environment variable to Windows using via the Advanced Settings under My Computer.
It works. Thanks for the tip.
Comment by Lakthinda — October 4, 2012 @ 2:02 am
Thanks a lot !!!
Comment by Arvind — October 4, 2012 @ 5:41 am
Thanks a lot.
Comment by dickson — November 8, 2012 @ 11:24 am
See Also following url for UI client
http://stackoverflow.com/questions/8846972/tortoisegit-asking-password
Comment by Janaka — November 18, 2012 @ 1:11 pm
These steps are indeed easy, but could you explain what they’re doing? I don’t like the idea of keeping my password in a plain text file lying around.
Comment by Michael Vargas — November 29, 2012 @ 1:11 am
talk about making my day… thanks!!!
Comment by Mike — March 11, 2013 @ 9:43 pm
[...] is something in TortoiseGit that can be configured, but can’t find any. Instead, I found this tips that I would like to share [...]
Pingback by Saving Credential in TortoiseGit | ariapura.net — April 19, 2013 @ 7:39 am
I am using beanstalkapp.com … what would be the machine field for me
Comment by sanny — April 29, 2013 @ 2:26 am