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.

Create a remote Git repository

Create a remote Git repository - Git Tutorial

From the course: Git for System Administration

Start my 1-month free trial

Create a remote Git repository

- [Instructor] There are times when you may want to host your remote Git repository within your network. The reasons for this are varied. Perhaps you'll be storing sensitive data, which you don't want to trust to a cloud provider, or maybe you want the speed advantage of having your Git server on your local network. Since this course targets using Git for system administration I recommend setting up your own private Git repository. This way you don't have to worry about what is being stored in your repository, as your repository is private, nor do you have to worry about storage as local storage is large and cheap. To do this properly we need two hosts. I will set this up on my rhhost2 VM and have the rhhost1 client contact it through the network, however just like previous exercises that made more sense on two hosts, this will also work just fine on one host. It's just not how we build it in a real environment. To run around one host we'll just have the client host contact itself…

Contents