Git Add

This command is used to prepare the Git system for further commit and push. When you give an “Git add” , you are telling which of the files are considered by Git. For example; you may have edited 3 files:

test1.txt
test2.txt
maybe.txt

You maybe sure that you want to send test1.txt and test2.txt to the Git Hosting service. But you are not sure if you want to do that with “maybe.txt” so you can specify the values as:

test1.txt test2.txt

Note that in this example; all those files are in the currently selected folder.

So in this case, it will not consider any file other than those two; for a commit and thence a push.


Learn the concepts | Table of Contents