babun 访问gitlab 每次弹出用户名密码
问题:
使用babun自带的git,因为工作项目是放在gitlab上,但是每次git pull,都会弹出询问用户名密码,设置了ssh key也是如此。
解决方案:
http://stackoverflow.com/a/36721316/4377192
Get the GCMW's latest release, download the zip file (not the installer), extract it's contents (only
.dll
and.exe
files are needed) toC:\cygwin\usr\libexec\git-core\
for 32-bit Cygwin, orC:\cygwin64\usr\libexec\git-core\
for 64-bit Cygwin. ReferenceTo tell git to use GCMW, execute:
git config --global credential.helper manager
To get GUI prompts for credentials, execute:
git config --global credential.modalprompt true
If you want this to be a per-repository setting, remove the
--global
option.
来源: https://github.com/Microsoft/Git-Credential-Manager-for-Windows/issues/146
下载gcmw的zip包,把里面的EXE,DLL文件都拷贝到babun的git-core 目录下
%Profile%\.babun\cygwin\usr\libexec\git-core\
然后设置
git config --global credential.helper manager
如果只是单项目的,移除--global即可
整合的babun下载:
http://www.odrive.tk/?/%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/babun-1.2.0-dist.zip
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。