3

私は問題なく入ることができ、z -a zできる ことを期待しています 。ただし、すべてをmagitに隠しておくと、無視されたディレクトリを隠し場所に保存することを意味するようですが、作業ディレクトリから削除することはありません。magit-statusstash pop / z p

その結果、stash は既に存在する無視されたディレクトリ内のファイルを pop しようとするため、単純に stash を pop することはできません。

リプレイ:

git init 
mkdir ignoreme
touch ignoreme/ignoremefile
git init
echo ignoreme > .gitignore
git add .gitignore
git commit -m "add ignore file"
emacs
  m-x magit-status; z; -a;z
git stash pop
  ignoreme/ignoremefile already exists, no checkout
  Could not restore untracked files from stash
4

1 に答える 1

4

C-u M-x magit-cleanまたはを実行できます!! clean -xd

(提案されたコマンドには-xフラグがありません。 git clean -d追跡されていないが無視されていないディレクトリが削除されます。)

于 2016-06-30T22:48:28.047 に答える