# 给项目设置远程远程仓库 #

git remote add origin http://git.oschina.net/*****/***.git
# 抓取远程仓库数据,并自动合并远程分支 #
git pull origin master
# 更新本地数据到Git@OSC #
git push origin master

# 解决不能更新的问题
git branch --set-upstream-to master origin/master
# 删除项目 git 信息
git remote rm origin

 

https://my.oschina.net/lujianing/blog/180728