Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 389 Bytes

index.md

File metadata and controls

21 lines (15 loc) · 389 Bytes

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.