Add screencast script
[khome.git] / home / bin / x
index 59a4710..eb5aee2 100755 (executable)
@@ -6,12 +6,13 @@ name=$(echo "$@" | sed 's/\s\+/-/g');
 
 if [ "$name" != "" ];
 then
-    timestamp=$(date +'%F--%H-%M--%S');
+    timestamp=$(date +'%F--%H-%M-%S');
     directory="$HOME/x/$timestamp--$name";
     mkdir -p "$directory";
     cd "$directory";
     printf '# %s\n' "$name" > README;
     git init >&2
+    git commit --allow-empty -m 'Root commit' >&2
     git add . >&2
     git commit -m 'Initial commit' >&2
     echo "$directory";
This page took 0.026352 seconds and 4 git commands to generate.