From the course: GitHub Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Where does Git store all of this information?

Where does Git store all of this information? - GitHub Tutorial

From the course: GitHub Essential Training

Start my 1-month free trial

Where does Git store all of this information?

- [Instructor] Navigating back to our command line, let's make sure that we're still at our github-games git repository. Now, we can always type pwd, which stands for print working directory. Now this is a very helpful command that we can use on the command line that shows us exactly where we currently are in our file path. And as you can see, we are at /github-games, which is exactly where we want to be. Now at this point, we have talked a lot about the inner workings of git, especially when it comes to commits and branches. But where does exactly git store all of this data? Well, git stores this in what's called the .git directory. If we type ls this is going to show us a list of our files and folders inside of our git repository, but you'll probably notice there is no .git directory. That is because it's what called the hidden directory. We can type ls -al, which is a command that shows us a list of all of our files, even the hidden files inside of our git repository. By running…

Contents