git sheeft http or ssh mode
git remote set-url BRANCH-NAME URL-OR-SSH-NAME
git remote -v //see what url u had
git push总是报warning: push.default is unset错误,
版本兼容性的原因,低版本的git push如果不指定分支名,就会全部推送,而新版只会推送当前分支。
解决的办法也很简单,我们只需要明确指定应该推送方式即可,至于选择哪种方式,It’s up to you.
全部推送
git config --global push.default matching
部分推送
git config --global push.default simple
git select an account repeatly fix
delect windows credentials
check here: https://github.com/git-ecosystem/git-credential-manager/issues/1325#issuecomment-1631642589