Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 225 Bytes

git.md

File metadata and controls

5 lines (3 loc) · 225 Bytes
  1. 使用git rm -f file直接删除该文件,使用git rm --cached file只从库中删除该文件,而不删除该文件本身。

  2. 使用git reset --hard <hash>来撤销commit到<hash>所指示的版本号。