2017年09月16日 15:33:34 娃哈哈19910206 閱讀數:5087android
原文地址:http://blog.csdn.net/sunsteam/article/details/73478045git
方法有三種:github
1.修改命令
git remote set-url origin [url]
例如:Git remote set-url origin gitlab@gitlab.chumob.com:PHP/hasoffer.gitgitlab
2.先刪後加
git remote rm origin
git remote add origin [url]fetch
3.直接修改config文件url
[core]
spa
repositoryformatversion = 0
.net
filemode = false
code
bare = false
orm
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://github.com/sunsteam/android-zxingLibrary.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master