git pushes with wrong user from terminal

前端 未结 22 1461
夕颜
夕颜 2020-12-07 07:51

I have an issue with git and my terminal.

Here\'s a gallery to show you my issue : http://imgur.com/a/6RrEY

When I push commits from my terminal, git says I

22条回答
  •  情歌与酒
    2020-12-07 08:01

    What worked for me was to use the Github repo's https URL instead of the ssh URL. I went to the Github project page and copied the https URL into my clipboard, and then pasted it into the second command below:

    git remote rm origin
    git remote add origin https://[...]
    

提交回复
热议问题