According to https://www.git-tower.com/learn/git/ebook/en/command-line/basics/basic-workflow#start
In Git, the repository is just a simple hidden folder named "
.git
" in the root directory of your project.
But Git for beginners: The definitive practical guide says
A git repository is simply a directory containing a special
.git
directory
Does "repository" refer to the hidden .git
folder or the directory containing a .git
directory?
I know that when you git commit
, you are logging changes into your local .git
folder. Does this mean when we push to a remote repository like one hosted on GitHub, we are just pushing the contents of the .git
folder and nothing else?