Git · Junior · Question 71 of 75

What does git commit --amend --no-edit do?

Explanation

Handy when you forgot a file: stage it and amend without retyping the message. The commit still gets a new hash.

Further reading

Problem with a question

Git · Junior · question 71

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