天天看點

git 報錯及解決

報錯:fatal: refusing to merge unrelated histories====

解決辦法:git pull加上參數,如:git pull –allow-unrelated-histories

報錯:

fatal: Unable to create '/Users/cag2050/Documents/eclipse_jee_workspace/spring_boot_demo/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.

an editor opened by 'git commit'. Please make sure all processes

are terminated then try again. If it still fails, a git process

may have crashed in this repository earlier:

remove the file manually to continue.

原因:

程序的同步互斥管理,是有資源上鎖機制的。

解決:

删除提示的檔案。

報錯:ECDSA key fingerprint is xxx

$ ssh [email protected]

The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.

ECDSA key fingerprint is SHA256:8bZUeFxyoxL9oYhc5aAZjgSZ5CT1oGYEYoehN/OLEYY.

Are you sure you want to continue connecting (yes/no)?