Skip to content

Files

Latest commit

d150cec · May 21, 2022

History

History

git-init-empty

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 21, 2022
Jan 11, 2022

README.md

git init-empty

Initalize a repo with an empty rebaseable commit

Git alias:

init-empty = !"f() { \
    git init && \
    git commit --allow-empty --allow-empty-message --message ''; \
}; f"

Example:

git init-empty

This initialization makes it easier to do later git rebase commands, because it enables a rebase to go all the way back to the first commit.