Git 如何 programmatic 的方式用 [账号 + 密码] 的方式将代码 push 到 git 仓库 (而不是在弹出框输入账号密码)?

aisensiy · May 18, 2017 · Last by aisensiy replied at May 18, 2017 · 6726 hits

比如有一个 git 仓库 https://github.com/test/test,我需要用程序自动的 clone 它,add remote 然后再 push 到另一个 repository,并且一定是一个 http 的 url 而不是 ssh 的。

其中 clone add remote shell 命令都是可以的,但是在 git push 的时候需要密码,求问这个可以通过在 push 的时候主动添加用户名密码的参数解决吗?或者有别的办法?

Reply to jicheng1014

解决了我的问题,非常感谢

aisensiy closed this topic. 18 May 17:16
You need to Sign in before reply, if you don't have an account, please Sign up first.