commit one file It asks us to commit only one file. Let's commit A.txt git add A.txt : adds A.txt to staging area git commit -m "First Commit" : For commit.