Committing changes in git

Changes that are in the staging area are committed to repository. To commit the changes, you have to use git commit command. Below image shows the commit command in action. Notice that we had one file in staging area – f1.txtAfter commit command is executed, nothing remains in staging area. So git status says that nothing to commit. Also In working directory, there are no new changes. If we modify, delete or add new files in the working directory, git status will give proper information.
Complex problems, Simple Solutions