Fix record start pattern
[khome.git] / home / bin / x
CommitLineData
64ec9f23
SK
1#! /bin/sh
2
3set -e;
4
0443168a 5name=$(echo "$@" | sed 's/\s\+/-/g');
3690e807
SK
6timestamp=$(date +'%F--%H-%M-%S');
7directory="$HOME/x/$timestamp--$name";
8mkdir -p "$directory";
9cd "$directory";
10printf '# %s\n' "$name" > README;
11git init >&2
12git commit --allow-empty -m 'Root commit' >&2
13git add . >&2
14git commit -m 'Initial commit' >&2
15echo "$directory";
This page took 0.093177 seconds and 4 git commands to generate.