1

git index(.git/index) stores the state of tracked files (last committed state) and it can be shown via git ls-files --stage and git diff looks at the difference between index and working directory. How does the use of git add to stage files modify index file internally?

Boon
  • 40,656
  • 60
  • 209
  • 315

0 Answers0