mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Allow empty initial commit when setup repo.
When hit `git setup` in an empty directory, it doesn't create a commit. But often we need an empty initial commit for future rebasing and reseting, etc. Fixes #318.
This commit is contained in:
parent
722a4061ac
commit
6df9673936
|
|
@ -13,4 +13,4 @@ mkdir -p "$dir" \
|
|||
&& gitdirexists \
|
||||
&& git init \
|
||||
&& git add . \
|
||||
&& git commit -m 'Initial commit'
|
||||
&& git commit --allow-empty -m 'Initial commit'
|
||||
|
|
|
|||
Loading…
Reference in a new issue