git osc设置git免密码登录

git osc设置免密码登录

1.首先在用户目录下

C:\Users\fun创建.gitconfig 和.git-credentials,文件名很特殊,前面含有点,在windows下无法直接建立该文件,安装好git后进入该目录右击鼠标选择git bash here打开命令窗口,使用touch命令创建文件


2然后通过vim 命令或者使用本地的文本编辑器




 
 3.同1建立.git-credentials文件

4.编辑文件添加

https://[email protected]:[email protected]

https://[email protected]:[email protected]

 

猜你喜欢

转载自shareisattitude.iteye.com/blog/2373698
Git