git add --a code example
Example 1: git add all files command
git add .
Example 2: git add
git add <FILE_NAME>
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
1. git add youFilePath
2. git add .