Important Basic Git Commands — Developers should know

Git Workflow

We have already talked about Git (earlier in the article), which helps to tracks and work on the same workspace where developers or organizations use to collaborate on developing applications.

  • Working Directory: The state where we perform add, delete, modify operations on files.
  • Staging Area: After modifying the files, we need to stage or commit the changes before pushing them into the Git directory.
  • Git Directory (Repositories): The section where Git stores the committed changes in the repositories.

Git Basic Commands

Git has many commands, but those that are useful or mainly used by developers or programmers in the workspace are:

  • Git Init
  • Git Clone
  • Git Status
  • Git Add
  • Git Commit
  • Git Checkout
  • Git Push
  • Git log
  • Git Pull
  • Git Stash
  • Git Rm
  • Git Diff
  • Git Reset
  • Git Merge
  • Git Config

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Siddharth Rastogi

Siddharth Rastogi

41 Followers

I am a full stack developer, I have an expertise in Web Development. I write tech stuff and share my knowledge with others with the help of articles.