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? - GitHub Tutorial
From the course: GitHub Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Using Git locally2m 32s
-
The anatomy of a commit2m 53s
-
Why commit relationships matter2m 20s
-
Understanding branches2m 49s
-
Where is your HEAD?2m 51s
-
Where does Git store all of this information?2m 43s
-
Working with remote tracking branches3m 8s
-
Viewing local history4m 54s
-
Using Git aliases4m 48s
-
Help me find that one commit4m 42s
-
Reverting changes with Git3m 28s
-
Crafting atomic commits with Git5m 11s
-
Viewing local changes4m 21s
-
-
-
-
-