L
L
lancehokage2022-03-05 23:30:19
git
lancehokage, 2022-03-05 23:30:19

What is the difference between git commit and git commit -a?

What is the difference between
git commit
and
git commit -a

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2022-03-05
@lancehokage

-a
--all
Tell the command to automatically stage files that have been modified and deleted, but new files you have not told Git about are not affected.

Changed files will automatically be added to the commit - no need to pre-executegit add <file>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question