Git: says origin already exists on “NEW” (init) repository, using shell but installed Github for Windows

前端 未结 3 722
旧巷少年郎
旧巷少年郎 2021-01-30 11:51

I installed Git for Windows, although I am using the shell not the Windows interface.

If I do a git init, and then try and do a

 git remote         


        
3条回答
  •  暖寄归人
    2021-01-30 12:17

    I simply deleted the origin section in %appdata%/Local/GitHub/PortableGit_.../etc/gitconfig and everything went back to normal - new repos act accordingly when I add remote origin to them, since they have none when they are created.

    There might be side effects for this deletion, but so far I haven't ran into any trouble.

提交回复
热议问题