几种情况:
增加了几个文件, 没有 add
, 不想保存文件, 怎么快速清除文件?
增加了 add
了文件, 不想保存文件, 怎样清理?
修改了文件, 没有 add
, 怎样清理?
修改了文件, 已经 add
, 怎样清理?
天蓬老师2017-04-24 09:13:08
git clean -f
(新しいディレクトリがある場合は -d
)git clean -f
( -d
if you have new directory )git reset --hard
( or git reset
then back to 1. )git checkout .
( or specify with file names )git reset --hard
( or git reset
git restart --hard
(または git restart
で 1 に戻ります。)git checkout .
(またはファイル名で指定)🎜
🎜
git restart --hard
(または git restart
を実行してから 3 に戻ります。)🎜
🎜巴扎黑2017-04-24 09:13:08
git clean -f
git clean -f
git checkout -f
git checkout -f
or git checkout .
git checkout -f
git checkout -f
git checkout -f
git checkout -f
またはgit checkout .
git checkout -f
<ブロック引用>
git checkout -f
🎜
🎜
リーリー
黄舟2017-04-24 09:13:08
git status -s | awk '$1 = "?" { print $2 }' | xargs rm -v
git status -s | awk ' = "?" { print }' | xargs rm -v
git reset --hard
git reset --hard
git reset --hard
git restart --hard
git restart --hard
🎜
🎜git restart --hard
🎜
🎜