用户工具

站点工具


git

这是本文档旧的修订版!


Git

Git是一个分布式版本控制系统,目前主要用于管理代码版本。

Common command

Useful command

Trick

How to fix `rm -f .git/index`

If you try to delete .git/index.lock but accidentally delete .git/index, you can recover this repo by using this commands(All unstaged changes will lose, sorry, blame yourself):

git read-tree --reset HEAD
git.1474334435.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)