dotfiles/bin/git-new

8 lines
208 B
Bash
Executable file

#!/bin/sh
#
# Initialize a git repository and automatically create an empty root commit.
#
set -e
git init
git commit --allow-empty -m "Initial commit"
git log --graph --pretty='%C(auto)%h%d %s %C(8) %ad'