是否有任何等效的命令在git中svn?

时间:2015-10-28 04:18:45

标签: git github bitbucket

svn up --username <mysusername> --password <mypassword>

git中是否有任何等效的命令。

我想把密码放在命令中,如

git pull --password <mypassword> origin master 

请建议我。

1 个答案:

答案 0 :(得分:0)

看看gitcredentials。

https://git-scm.com/docs/gitcredentials

https://git-scm.com/docs/git-credential-store

来自文档:

  

Git有时需要用户提供凭据才能执行操作;例如,它可能需要请求用户名和密码才能通过HTTP访问远程存储库。本手册介绍了Git用于请求这些凭据的机制,以及一些避免重复输入这些凭据的功能。

相关问题