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)的主要内容,如果未能解决你的问题,请参考以下文章

MS-Windows中的Git命令行

windows下git中sh.exe中文显示乱码问题解决

windows下git中sh.exe中文显示乱码问题解决

如何从 Windows 命令行启动 Git Bash?

Windows XP上的Git sh.exe进程分叉问题,慢吗?

Windows上使用Git管理文件