Committing Changes (git commit)
'git commit' records changes to the repository with a commit message describing the update.
Usage
To commit changes:
git commit -m "Commit message"
Explanation: The '-m' flag allows you to add a message inline. Without it, Git opens an editor where you can write a longer message.
Key Takeaways
- 'git commit' creates a snapshot of the staged changes in your repository.
- A clear commit message is essential for understanding the purpose of the change later.