0

A lot of answers on SO seem to suggest that we need a staging area because we don't always want to commit every file that we have edited.

But then why can't we just explicitly mention the files that we want to commit while making the commit? Something like git commit <files_to_commit> -m "Initial Commit"?

Why do we need a staging area for this?

GuyF4
  • 1
  • Since not all version control systems have a staging area, the answer is clearly "we don't need it"; but people thought it was a useful feature, so it exists. – IMSoP Sep 21 '22 at 20:22

0 Answers0