💭 You already have a git server: (Maurycy's blog)

!https://maurycyz.com/misc/easy_git/

It’s so easy to forget low level tech sometimes. Things that are dead simple and just work without a hitch. git is one of those rock solid things thats very easy to remember all that it does, this is a classic use case.

This just works

cd /parent/directory/for/repo
git clone ssh://username@server/path/to/repo

In order to recieve you must update the remote to allow recieve.

git config receive.denyCurrentBranch updateInstead

Now you can pull update push.

It’s funny how this was the way I first learned to do Continuous Deployment to a RHEL7 machine, also how Heroku worked, but its so easy to forget this solution is there. I come across it every few years and immediately have a few use cases in mind.

Note

This post is a thought. It’s a short note that I make about someone else’s content online #thoughts

Connections

Related tags and posts connected to this entry.