常用Git命令整理

记录一些常用的Git命令

强制添加和从工作区强制撤销

1
2
3
4
5
6
# 添加
git add -f "somefiles"

# 撤销
git rm -f "somefiles in work zone"