What is Git ?

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. And it is designed for coordinating work among programmers, but it can be used to track changes in any set of files.

Advantages Of Git

Git Basic Commands

  • git init – Creating a new Git repository
  • git clone – Downloading an existing repository from a remote server
  • git commit – Saving changes to the local repository
  • git pull – Downloading and integrating remote changes
  • git push – Publishing new local changes on a remote server
  • git merge – Integrating changes from another branch
  • git checkout – Switching branches and restoring files
  • git checkout -b – Creating a new branch and restoring the files.
  • git branch – Creating, deleting and showing branches
  • git revert – Undoing an existing commit by creating opposite changes
  • git add – Adding changes to the staging area
  • git remote – Showing, adding and removing connections to remote repositories
  • git switch – Switching branches
  • git status – Displaying uncommitted changes and the state of your Working Copy
  • git rm – Removing files in Git
  • git restore – Discarding or unstaging uncommitted local changes
  • git diff – difference between Working and Staged
Posts created 494

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top