TortoiseGit save user authentication / credentials

前端 未结 8 2237
轮回少年
轮回少年 2020-11-28 01:15

Is there a way to save GITHUB\'s user credentials with TortoiseGit?

It prompts me the below dialog every time whenever I do a push/pull.

I would

8条回答
  •  情歌与酒
    2020-11-28 01:33

    Saving username and password with TortoiseGit

    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 yourlogin
      password yourpassword

    2. Copy the file to C:\Users\ (or another location; this just happens to be where I’ve put it)

    3. Go to command prompt, type setx home C:\Users\

    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.

    CREDIT TO: http://www.munsplace.com/blog/2012/07/27/saving-username-and-password-with-tortoisegit/

提交回复
热议问题