Git add

description:

git add commands to add the file contents to the index (to be added to modify the staging area).
This command information file to be submitted added to the index database (adding modifications to the staging area), in order to prepare for the next segment of a submission. It is usually the current contents of the existing path as a whole added, but through a number of options, it can also be used to add content, only the working tree file applications to make some changes, or delete the path does not exist in the work of the tree.

Commonly used commands:

  • Submission of directory or file
    git add <dir|file>
  • Submit all changes
    git add -A
  • Submitted be modified and deleted files, not including the new file
    git add -u
  • Submit new documents and files are modified, deleted files do not include
    git add .
Published 33 original articles · won praise 62 · views 240 000 +

Guess you like

Origin blog.csdn.net/Jairoguo/article/details/104321946