git add . meaning code example

Example 1: git add

//to add a single file
git add <FILE_NAME>

//to add all changed files
git add -A

Example 2: git add command

//to add file to the repository
1. git add youFilePath

//if you want to add all file then
2. git add .

Example 3: git add -M meaning

git add -M <new branch name>

## -M flag is for renaming the current branch in which you are present..
## Note it is for local branch on your computer

## please vote this

Example 4: git add .

git add <file> or you can do git add -A to add all files