git 一些记录

xiaoxiao2021-02-28  118

1、git commit -a 此时会进入vim编辑模式,可以 i 键输入提交备注,完成备注后通过esc 退出编辑模式,并输入:q! 不保存并退出,或者 :wq! 保存并退出。

2、出现如下报错时: If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue.

解决方法:

rm -f ./.git/index.lock (记住,前面没有git)

3、git config –list 此时会显示所有配置文件信息 可以通过如:git config user.name 格式查看具体

转载请注明原文地址: https://www.6miu.com/read-46933.html

最新回复(0)