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

前端 未结 5 1195
甜味超标
甜味超标 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:53

    For Windows User: Follow Instructions:

    Control Panel >> User Account >> Credential Manager >> Windows Credential >> Generic Credential

    You can change git credential:

    click modify>>provide uname and password

    Or you can remove git credential. Next time when you'll push repo, it'll ask you for credential.

提交回复
热议问题