git add only one file to commit code example Example: git add //to add a single file git add <FILE_NAME> //to add all changed files git add -A