sh git命令(windows)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh git命令(windows)相关的知识,希望对你有一定的参考价值。

#设置记住密码(默认15分钟):
git config --global credential.helper cache

#如果想自己设置时间,可以这样做:(这样就设置一个小时之后失效)
git config credential.helper 'cache --timeout=3600'

#长期存储密码:
git config --global credential.helper store

#增加远程地址的时候带上密码
git remote add origin http://yourname:password@git.oschina.net/name/project.git

#删除远程分支
git push origin :src

以上是关于sh git命令(windows)的主要内容,如果未能解决你的问题,请参考以下文章