Inside Git ? How it works and what is inside .git?
dev.to·1d·
Discuss: DEV
🌳Git Internals
Preview
Report Post

if you reading this means I will assume you know what exactly git is for!! , We will not talk about how push or commit here we will talk about what happens when you commit or push the code.

All of this starts from the command git init which initializes the repo gets the .git file ready to use. Once you have committed the first commit , you will see a .git folder in the working directory , Before knowing what is inside it let’s first understand what it is and how it operates. Think of .git as the database storing the entire history of commits along with the data(code) in form of objects it used to retrieve and store data pretty differently than previous Version Control Systems(VCS) which follow traditional method of storing the entire file structure that has been changed unlike…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help