美文网首页
git修改远程仓库地址

git修改远程仓库地址

作者: Mark_ZSQ | 来源:发表于2021-01-27 09:23 被阅读0次

    git remote set-url origin <url>
    

    git remote rm origin
    git remote add origin [url]
    

    3.直接修改config文件

    image.png
    [core]
        repositoryformatversion = 0
        filemode = false
        bare = false
        logallrefupdates = true
        symlinks = false
        ignorecase = true
        hideDotFiles = dotGitOnly
    [remote "origin"]
        url = https://github.com/ZhangDi-d/SpringBootSample.git
        fetch = +refs/heads/*:refs/remotes/origin/*
    
    

    相关文章

      网友评论

          本文标题:git修改远程仓库地址

          本文链接:https://www.haomeiwen.com/subject/gbpozktx.html