git放弃本地所有未提交的修改

1、未添加至暂存区的

git checkout .

2、已添加至暂存区的

git reset HEAD .

git checkout .

猜你喜欢

转载自www.cnblogs.com/liyuchuan/p/11525217.html