20

If you create a new directory, its files won't show up with magit-status, only the new directory is in the list of Untracked items.

Currently I have to magit-stage-item the new directory and then remove unwanted files from the stage area.

Is there any way to choose which files to stage from a new directory?

29

Run:

git config status.showUntrackedFiles all

or if you want to enable this in all repositories:

git config --global status.showUntrackedFiles all

and refresh the status buffer. Initially you will still only see directories which contain untracked files, not the files themselves. But these directory sections can now be expanded using TAB.

One possible disadvantage of using status.showUntrackedFiles all is a chance of slow performance, when using Git directly - Magit actually counteracts that.

  • Is there a way to apply this setting globally? How can I add it to my ~/.gitconfig file? – krystalcode Jul 16 '16 at 0:12
  • @krystalcode: Try git config --global to modify global settings. – Toxaris Sep 21 '16 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.