- git remote remove origin
- git remote add origin [YOUR NEW .GIT URL]
- edit your .git/config
[branch "master"]
remote = origin
merge = refs/heads/master
Now you can simply git push and git pull.
git branch -u origin/remote-branch-name local-branch-name
git pull
總結(jié)
git branch -u 關(guān)聯(lián)本地分支和遠(yuǎn)程分支泉褐。其中origin/remote-branch-name 是遠(yuǎn)程分支, local-branch-name是本地分支