How to add changes using git?

Git is the best version controlling service so far. All most all developers are using it every day. In this post, we will try to cover all the necessary things about how to add changes using git.

Sometimes we may need to add all changes including new files. Some might prefer to add only the changes from the existing files.

Following are some useful commands for adding changes using git.

// stages all changes
$ git add -A
// stages new files and modifications, without deletions
$ git add .
// stages modifications and deletions, without new files
$ git add -u