打开终端,查看仓库地址
1 2 3 |
$ git remote -v > origin git@github.com:USERNAME/REPOSITORY.git (fetch) > origin git@github.com:USERNAME/REPOSITORY.git (push) |
修改本地仓库地址
1 |
$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git |
查看现在的仓库地址
1 2 3 4 |
$ git remote -v # Verify new remote URL > origin https://github.com/USERNAME/REPOSITORY.git (fetch) > origin https://github.com/USERNAME/REPOSITORY.git (push) |
推送历史commit到远程分支
1 |
$ git push --all |