git 修改远程pull和push地址

时间:2020-12-17 13:41:01

修改.git/config文件夹里的url

ubuntu@dongyang-K46CB:~/sunteng/src/dsp_masky/.git$ cat config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = git@git.server:dsp/dsp_masky.git
        fetch = +refs/heads/*:refs/remotes/origin/*
        pushurl = git@git.server:dsp/dsp_masky.git
        url = git@git.server:dsp/dsp_masky.git
[branch "master"]
        remote = origin
        merge = refs/heads/master
[branch "develop"]
        remote = origin
        merge = refs/heads/develop