【发布时间】:2016-12-31 05:53:17
【问题描述】:
我想在 bash 中使用循环更新许多存储库:
for dir in *; do ( cd $dir; git pull origin master ); done
虽然有很多类似的问题
- How to enter command with password for git pull?
- How to input password to git pull command?
- How to provide username and password when run “git clone git@remote.git”?
git 只允许通过
设置凭据- 修改远程仓库:http://:@host/...
- 使用gitcredentials
为什么没有“--password”选项,例如在mysql命令行中?
这对于在运行中自动执行 git 任务有很大帮助。
这是计划中的 git 功能并且已经在路线图上,还是我们必须长期坚持今天给出的选项?
是否有指定密码的解决方法,例如使用管道机制?
【问题讨论】:
标签: git bash passwords credentials git-pull