Q2 git无法pull仓库refusing to merge unrelated histories
解决方法:
git pull origin master--allow-unrelated-histories
Q3 error: cannot lock ref refs/remotes/origin..
报错:
error: cannot lock ref 'refs/remotes/origin/分支名': ref refs/remotes/origin/分支名... is at 19070aed6873f8d58f35e4631272b59f13927a1c but expected 8a5b3bda0778070bd6b92123556475c9484e04b8
remote: GitLab: You are not allowed to push code toprotected branches on this project. To ssh://git.xxx.com:22138/ms-group/mm-test.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to'ssh://git@git.xxx.com:22138/ms-group/mm-test.git'