Skip to content

Instantly share code, notes, and snippets.

@anton-107
Created March 25, 2017 20:35
Show Gist options
  • Save anton-107/1d846bbb1f9e11d0ba573b7008e9537b to your computer and use it in GitHub Desktop.
Save anton-107/1d846bbb1f9e11d0ba573b7008e9537b to your computer and use it in GitHub Desktop.
Always Start With An Empty Commit
# read: https://bit-booster.com/doing-git-wrong/2017/01/02/git-init-empty/
git init new-repo
cd new-repo
git commit -m 'initial empty commit' --allow-empty
git tag init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment