Git · Junior · Question 38 of 75

What does git commit -a -m "msg" do?

Explanation

-a stages modifications and deletions of already tracked files. New, untracked files still need an explicit git add.

Further reading

Problem with a question

Git · Junior · question 38

Test yourself

Take the Git · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz