Your preferred Git hosting service is momentarily down? Don't worry. You can sti...
Adrian Kosmaczewski @akosma@mastodon.online
Your preferred Git hosting service is momentarily down? Don't worry. You can still collaborate with your peers in your local network if needed.
$ sudo dnf install git-daemon
$ git config --global alias.serve "daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths --enable=receive-pack .git/"
$ cd some-git-repo
$ git serve
And on another machine,
$ git clone git://server:9418/
where "server" is the IP of the machine where you ran "git serve".
You're welcome.