1

When I want to stage one file I use the command magit-stage. It works.

But now I want to stage many files at once, using the command magit-stage-modified.

Here's a sceenshot:

Magit-stage-modified

But after I press y nothing happens. All files stay in the Untracked files section.

7

magit-stage-modified only stages modified files. Files that are not being tracked by git are not modified. Here "modified" means "there are changes compared to the changes in the index". Files that are not even being tracked are not in the index.

You can stage all untracked files by moving the cursor to Untracked files (5) and pressing s. Or you could invoke magit-stage-modified with a prefix argument - in that case it also stages untracked files.

You should also read Getting Started in the manual, which among other things, describes various ways to stage changes.

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.