Skip to content

Instantly share code, notes, and snippets.

@enplotz
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enplotz/11148602 to your computer and use it in GitHub Desktop.
Save enplotz/11148602 to your computer and use it in GitHub Desktop.
Initialize a git repository with an empty root commit. This allows for easier rebases which include the root commit.
alias git-init='git init . && git commit --allow-empty -m "Root commit."'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment