Git Remote

#git #sysadmin

In an effort to simplify my deployment process for static websites, I’ve been looking for things I can remove. The Git repositories that I use are scattered between a few different hosts. I’ve used Bitbucket, Github and AWS Codecommit. Since I’m usually the only one editing these repositories, I don’t need all the features that these provide. The main benefit of switching to my local network, for me, is the amount of space that I’ll have available and it will integrate with my existing backup strategy.

To start off, I’m just going to use SSH as the method to work with Git on the server.

Create A Bare Repository

$ git init --bare NAME

Now I can just push to:

ssh:[email protected]/path/to/repo.git

http://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git-on-a-Server