How do I push to GitHub under a different username?

后端 未结 20 2001
盖世英雄少女心
盖世英雄少女心 2020-12-02 04:00

A friend and myself are sharing my computer. I\'ve made pushes to GitHub using the git bash shell on Windows 7. Now we\'re in a different project on that computer and I need

20条回答
  •  萌比男神i
    2020-12-02 04:38

    This worked for me, it will prompt for username and password

    git config --local credential.helper ""
    git push origin master
    

提交回复
热议问题