Android Studio 提交專案到新的Git地址 怎麼修改
原文地址:http://blog.csdn.net/sunsteam/article/details/73478045
方法有三種:
1.修改命令
git remote set-url origin [url]
例如:Git remote set-url origin [email protected]:PHP/hasoffer.git
2.先刪後加
git remote rm origin
git remote add origin [url]
3.直接修改config檔案
[core]
repositoryformatversion = 0
filemode = false
bare = false
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
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13