From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Set up a Git server

Set up a Git server - Linux Tutorial

From the course: Linux Tips

Set up a Git server

- [Instructor] Git is a popular source control management tool that can be used locally and remotely. In this episode, I'd like to spend a few minutes setting up a Git server, like we might use for an organization or a group of people working together on a project. While it's common to use existing services or products like GitHub and GitLab, it's also useful to know how to set up a standalone Git server, should you need to. To do this, we'll take a few steps. Git can operate remotely using SSH. So that's the method we'll use here. We'll create a user called Git on the server. And so we establish a secure connection. We'll need SSH keys, so we'll create those too. And in order to have a repository on the server, we'll need well a repository. So we'll create a directory on the server for each project that needs hosting. And finally, we'll create a project on a client machine and commit it to the server, using the SSH key…

Contents