Skip to main content

One post tagged with "git"

View All Tags

How Git Works

· 14 min read
forfd8960
Author

The internals want to know about Git

We as developers often use git to manage our code. But do you know how git works?

And as a Curious developer, I want to know how git works.

Some questions I want to know are:

  • How git stores the data(the code, the image etc)
  • What happens when run git add
  • How does git knowns which file is untracked.
  • Where does the data is been stored.
  • How git store the commit when you run git commit -m "message"
  • How git restore the repo when checkout to another branch.