Name some GIT commands and also explain their functions?

devquora
devquora

Posted On: Feb 22, 2018

 

  • GIT diff – It shows the changes between commits, commits and working tree.
  • GIT status – It shows the difference between working directories and index.
  • GIT stash applies – It is used to bring back the saved changes on the working directory.
  • GIT rm – It removes the files from the staging area and also of the disk.
  • GIT log – It is used to find the specific commit in the history.
  • GIT add – It adds file changes in the existing directory to the index.
  • GIT reset – It is used to reset the index and as well as the working directory to the state of the last commit.
  • GIT checkout – It is used to update the directories of the working tree with those from another branch without merging.
  • GIT Is tree – It represents a tree object including the mode and the name of each item.
  • GIT instaweb – It automatically directs a web browser and runs the web server with an interface into your local repository.

    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

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

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