What does 'adding to the index' really mean in Git?

后端 未结 2 667
感动是毒
感动是毒 2020-11-28 08:52

I\'ve got a question regarding Git basics.

Basically, what does the action known as \"add to the index\" mean in Git? I understand it like this:

If for a

2条回答
  •  醉酒成梦
    2020-11-28 09:32

    When you add a file, it's marking that as a file that you will commit once you run the git commit command. A shortcut to add all modified files automatically is to commit with git commit -a. Another shortcut if you are adding multiple new files at the same time is to run git add -A.

提交回复
热议问题