一、查看修改远程关联:
$ git remote -v
origin ssh://git@xxxx/core.git (fetch)
origin ssh://git@xxxx/core.git (push)
二、直接push到新的url会发现Host key verification failed.
要先:
git remote remove origin
git remote add origin 新仓库地址
或者VS自带团队资源管理器设置里
三、git pull
Git: There is no tracking information for the current branch.
有两种方法解决:
1、先指定本地master到远程的master,然后再去pull:
git branch --set-upstream-to=origin/develop develop
git pull
2、指定远程分支:
git pull origin develop
四、push
$ git push --set-upstream origin master
The authenticity of host 'xxxx ([xxxx)' can't be established.
ECDSA key fingerprint is SHA256:OAVmsLaMoFF/O3fVgF5Wb4dxjpxxx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'xxxx' (ECDSA) to the list of known hosts.
要输入yes!