Skip to content

Instantly share code, notes, and snippets.

@0x4a
Last active August 29, 2015 13:57
Show Gist options
  • Save 0x4a/9464998 to your computer and use it in GitHub Desktop.
Save 0x4a/9464998 to your computer and use it in GitHub Desktop.
#git #cli - initial empty commit
#!/bin/bash
# make an alias
git config --global alias.initempty '!git init && git commit -m "(initial empty commit)" --allow-empty'
#!/bin/bash
# do empty commit
git commit -m "(initial empty commit)" --allow-empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment