How does 'commit' function in Git?

  • To copy changes from the local repository to the remote repository
  • To delete files from the repository
  • To merge branches in Git
  • To save changes in the local repository
In Git, 'commit' is used to save changes made to the local repository. It creates a snapshot of the changes, making it possible to track the project's history and revert to previous states if needed. Committing is a crucial step in the version control process.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *