Git Fundamentals

Level up with "Git Fundamentals"

Access all lessons in this tutorial.

No spam, unsubscribe at any time.

This is a free tutorial

In exchange for your email address, you'll get full access to this and other free Epic Web Dev tutorials.

Why? First and foremost, your inbox allows us to directly communicate about the latest Epic Web Dev material. This includes free tutorials, tips, and periodic update about trends, tools, and happenings in Web Development that I'm excited about.

In addition to the piles of free Epic Web Dev content, you'll get the earliest access and best discounts to the paid courses when they launch.

There won't be any spam, and every email you get will have an unsubscribe link.

If this sounds like a fair trade, let's go!

Current section: Commands 17 exercises
lesson

Creating a Git Repository with `git init`

git init is the command used to create a new git repository. To initialize a repository in a new directory, provide an optional path:

git init my-git-notes

Move into the directory with cd my-git-notes, then run ls and see that the directory appears empty.

However, running `ls -a

Subscribe to unlock this lesson.

Transcript

00:00 Git init is how you create git repositories. Provide an optional path, my git notes, to initialize that repository in a new directory. cd into the new git repository and run ls to see that it is in fact empty.

00:16 Now run ls with the a option to see that there's one hidden directory. Let's take a look inside of that ls again for that .git directory. This .git hidden directory with these nested folders and files is what makes this boring

00:32 system directory into a git repository. For additional git init options type git help init.

Full Stack Vol 1
You might also like

Full Stack Vol 1

Kent C. Dodds
Kent C. Dodds

A comprehensive guide to full stack development

166 Interactive Exercises ・ Progress Tracking ・ Completion Certificate
Learn more