一、提交更改时:
git push
GitLab: Project 'vms/core' was moved to 'fms/core'.
Please update your Git remote and try again:
git remote set-url origin ssh://git@xxxx/fms/core.git
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
先执行以下:
git remote remove origin
git remote add origin 新仓库地址
查看:
git remote -v
二、关联分支:
error: the requested upstream branch 'origin/master' does not exist
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push.
由于我远程分支已经有了,所以
git fetch
关联即可
git branch --set-upstream-to=origin/master master
git branch --set-upstream-to=origin/develop develop