git add --a code example

Example 1: git add all files command

/*to add all the files in staging area at once*/
git add .

Example 2: git add

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

//to add all changed files
git add -A

Example 3: add remote in git

git remote add origin git@git.assembla.com:portfolio/space.space_name.git#set a new remotegit remote -v#Verify new remoteorigin  git@git.assembla.com:portfolio/space.space_name.git (fetch)origin  git@git.assembla.com:portfolio/space.space_name.git (push)

Example 4: remove frmo staging git

git reset HEAD -- filename

Example 5: git add all files

git commit -a -m "msg"

Example 6: git add command

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

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