commit-one-file-staged git reset to reset the staging area then adding only A.txt using git add A.txt commiting using git commit -m "message"