Git Commit

The “git commit” command is used to save your changes to local repository.

For commiting changes we need to provide a message with git commit with -m flag. Example

git commit -m "your message"

git commit

Now if we will do git status it will show us that there is nothing to commit

git status nothing to commit

Subscribe Now