【发布时间】:2013-03-11 04:36:34
【问题描述】:
是否可以暂时将 ssh 用户更改为“git push remote master”而不弄乱 .git/config 或“git remote”,或者使用整个远程 url?
[root@host gitrepo]# git push otheruser@remote master # this does not work, but how great it would be
[root@host gitrepo]# USER=otheruser git push remote master # still asks password for root
【问题讨论】:
-
我喜欢
GIT_SSH_COMMANDstackoverflow.com/a/27607760/4200039