From the course: Programming Foundations: Version Control with Git
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Setting up a local repository - Git Tutorial
From the course: Programming Foundations: Version Control with Git
Setting up a local repository
- [Instructor] Now that we have our configuration set up, we're ready to jump into Git, starting with creating a local repository. In the last exercise, we created the LinkedIn Git course folder to hold all of the exercises. So you should still be in this directory, which is shown in the prompt. If not, change to this directory now. Here's a little trick. First, type cd followed by a space. Then you can drag and drop the folder right into your command line. Then press enter, or return. Technically, we're using the computer's UI to move the folder instead of strictly relying on the command line interface. But I always say, use whatever works best for you. Before adding the next command, I'm just going to clear my window. Now, let's make a new project folder using the make directory command, mkdir, space, and a folder name. Usually, I use something descriptive like the client name, project name, or the domain name. But since we're just creating a test project, I'll name it…
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
-
-
-
-
(Locked)
Using command line1m 17s
-
(Locked)
Command-line basics6m 3s
-
(Locked)
Configuring Git settings2m 46s
-
(Locked)
HTTPS vs. SSH4m 16s
-
(Locked)
Setting up a local repository4m 18s
-
(Locked)
Managing version history with Git add and commit2m 36s
-
(Locked)
Exercise: Creating project files4m 56s
-
(Locked)
Exercise: Git add and Git commit3m 47s
-
(Locked)
Creating a remote repository2m 13s
-
(Locked)
Syncing with git push and pull5m 50s
-
(Locked)
Deleting a repository3m 7s
-
(Locked)
Cloning a remote repo4m 26s
-
(Locked)
Challenge: Putting it all together1m 43s
-
(Locked)
Solution: Putting it all together6m 19s
-
(Locked)
-
-