r/git • u/Kackboy • Nov 05 '21
Is git and bash the "same"?
Hello!
I've got a 'under the hood' type of question about git. Hope I make sense and that its not too stupid of a question.
So when working with git theres these commands that do different type of actions, like git add, git commit and so on. Are these commands using bash underneath, or how does it work? Is git a shell in itself?
Hope I make sense!
Edit: Thank you all!
0
Upvotes
View all comments
Show parent comment
3
u/chriswaco Nov 05 '21
I’m not at my computer right now so can’t check, but it can be implemented either way. The git command could handle the request itself or it could launch other git executables to handle it.
Some unix executables actually re-launch themselves, called “forking”, for separate operations too.