Poor man’s GitHub
In this section, we’ll show you how to set up a remote Git repository for yourself. You only need an SSH account on the remote machine and a Git binary on your local machine (as in, the Git command itself). If Git is already installed on the remote machine, you won’t even need root access.
This is a fun project that will make you comfortable with the basic OS-facing concepts involved with Git. This setup is not necessarily suggested for production use; rather, it will show you that there’s absolutely no magic when it comes to Git. Like everything else in Linux, it’s just files (in this case, remote files and an SSH tunnel).
Considerations
Depending on whether you have root access and whether you want to share the repository with others, you might want to consider creating a specific user for your shared Git service. This is completely optional.
We will use an SSH account for authentication, so if you share the Git...