tj.git-extras/bin/git-setup

9 lines
160 B
Bash
Executable file

#!/bin/sh
dir=$(test -z "$*" && echo "." || echo "$*")
mkdir -p "$dir" \
&& cd "$dir" \
&& git init \
&& git add . \
&& git commit -m 'Initial commit'