How to change git ssh user for a remote push temporarily?

前端 未结 5 1197
甜味超标
甜味超标 2020-11-30 02:11

Is it possible to change the ssh user temporarly for a \"git push remote master\" without messing up with .git/config or \"git remote\", or using the whole remote url?

5条回答
  •  抹茶落季
    2020-11-30 02:59

    Have you tried using the whole remote URL?

    git push ssh://@/ :
    

    and you will be prompted to provide the password

提交回复
热议问题