是五月呀!

git远程仓库管理

查看:

1
git remote -v

添加:

1
git remote add origin git@github.com:michaelliao/learngit.git

修改:

1
git remote set-url origin git@github.com:michaelliao/learngit.git

或者:

1
2
git remote rm origin
git remote add origin git@...git

强制push覆盖远程:

1
git push -f <remote> <branch>