git 一些记录

来源:互联网 发布:剑三藏剑成男捏脸数据 编辑:程序博客网 时间:2024/06/11 05:37

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 格式查看具体

原创粉丝点击