From ceb1150b8741c3008c678d083910f61c10e6f743 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 11 Oct 2025 10:52:14 +0200 Subject: Add basic Git hosting --- infrastructure/roles/git/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 infrastructure/roles/git/README.md (limited to 'infrastructure/roles/git/README.md') diff --git a/infrastructure/roles/git/README.md b/infrastructure/roles/git/README.md new file mode 100644 index 0000000..ca32c99 --- /dev/null +++ b/infrastructure/roles/git/README.md @@ -0,0 +1,19 @@ +# git + +## Create a repository + +On the server: + +``` +mkdir -p ~/git +cd ~/git +git init --bare $REPO +``` + +## Push an existing repository + +``` +git remote add $REMOTE_NAME $SERVER:git/$REPO +git push $REMOTE_NAME main +``` + -- cgit v1.2.3