From the course: Git for System Administration

Unlock the full course today

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

Cloning a remote GitHub repository

Cloning a remote GitHub repository - Git Tutorial

From the course: Git for System Administration

Start my 1-month free trial

Cloning a remote GitHub repository

- [Instructor] At this point, we've created a local repository on a host and then we created a remote repository to push changes to. Now let's get a second host and pull our repository down. In the real world, this would be another host, either physical or virtual. For my purposes, I've cloned my initial host, which was named rhhost1 and I've named the clone rhhost2 to keep them separate. However, for the purpose of this exercise, this is not necessary. You can do this on the same host to learn the process, just make sure you're in a different directory than GitProjectOne. For this exercise, I'm going to log into my second host named rhhost2, then inside my home directory, I'm going to create a directory named RemoteRepos and change into it. If you're using the same host as you have been, you can still follow these directories verbatim. Type in mkdir space RemoteRepos and hit enter. Now cd into it. Type in cd space RemoteRepos and hit enter. The path to my RemoteRepos is…

Contents