aboutsummaryrefslogtreecommitdiff
path: root/infrastructure/roles/git/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'infrastructure/roles/git/README.md')
-rw-r--r--infrastructure/roles/git/README.md19
1 files changed, 19 insertions, 0 deletions
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
+```
+