How to change git remote origin git:// to https://?

This question already has an answer here:

  • Change the URI (URL) for a remote Git repository 11 answers

  • Check the Changing a remote's URL docs from GitHub:

    Change your remote's URL with the git remote set-url command:

    git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
    

    In your case, try this:

    git remote set-url origin https://github.com/devRena/test.git 
    

    您可以简单地手动编辑.git / config文件。

    链接地址: http://www.djcxy.com/p/4618.html

    上一篇: 如何正确使用网络磁盘驱动器的git

    下一篇: 如何更改git remote origin git:// https://?