dotfiles/bin/git-new

7 lines
218 B
Bash
Executable file

#!/bin/sh
# Initialize a git repository and automatically create an empty root commit.
# NOTE: requires the `l` alias to be defined (see .gitconfig)
git init && git commit --allow-empty -m "Initial commit" && git l