Git push requires username and password

前端 未结 24 2493
灰色年华
灰色年华 2020-11-22 04:14

I cloned a Git repository from my GitHub account to my PC.

I want to work with both my PC and laptop, but with one GitHub account.

When I try to push to or p

24条回答
  •  独厮守ぢ
    2020-11-22 04:33

    You need to perform two steps -

    1. git remote remove origin
    2. git remote add origin git@github.com:NuggetAI/nugget.git

    Notice the Git URL is a SSH URL and not an HTTPS URL... Which you can select from here:

提交回复
热议问题