What is a GIT commit and what does the commit object contain?

devquora
devquora

Posted On: Feb 22, 2018

 

A GIT commit is a command that is executed in the course of a project to records progress.

The commit object contains the following components

  • A set of files that represents the state of the file at any instance of time.
  • Reference to the parent commit
  • An SHAI name, a 40-character string that can uniquely identify the commit object.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Git Interview Questions

    What is GIT and why do we use it?

    GIT is a Distributed Version Control System (DVCS) and Source Code Management System (SCMS) which can track changes to a..

    Git Interview Questions

    What are GIT stash and GIT stash drop?

    GIT stash:It takes the current state of working directory and index and pushes into the stack for later and returns to ..

    Git Interview Questions

    Name some GIT commands and also explain their functions?

    GIT diff – It shows the changes between commits, commits and working tree.GIT status – It shows the difference b..