From a9d931d954e2f689d5124fc2cd3673c69051edd1 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 27 Dec 2017 20:48:15 +0200
Subject: [PATCH] New git alias, initial (empty repo with an empty initial
 commit).

---
 Documents/bin/git-initial | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100755 Documents/bin/git-initial

diff --git a/Documents/bin/git-initial b/Documents/bin/git-initial
new file mode 100755
index 0000000..edb7695
--- /dev/null
+++ b/Documents/bin/git-initial
@@ -0,0 +1,20 @@
+#!/bin/sh
+set -eu
+
+die () {
+    echo "$@"
+    exit 1
+}
+
+usage () {
+    die "Usage: $0 repo_name"
+}
+
+[ "$#" = "1" ] || usage
+reponame="$1"
+# shellcheck disable=SC2029
+git init "$reponame"
+(
+cd "$reponame"
+git commit --allow-empty --message "Initial empty commit."
+)
-- 
GitLab