26 lines · 686 B · Shell
RawDownload
#!/bin/bashset -eu -o pipefail export GIT_AUTHOR_DATE="2000-01-01 00:00:00 +0000"export GIT_AUTHOR_EMAIL=author@example.comexport GIT_AUTHOR_NAME=authorexport GIT_COMMITTER_DATE="2000-01-02 00:00:00 +0000"export GIT_COMMITTER_EMAIL=committer@example.comexport GIT_COMMITTER_NAME=committer mkdir -p "$1"cd "$1"git init -qgit config commit.gpgsign false git checkout -q --orphan parent1git commit -q --allow-empty -m parent1 git checkout -q --orphan parent2git commit -q --allow-empty -m parent2 git checkout -q -b child parent1git merge -q --allow-unrelated-histories --no-ff -m child parent2 >/dev/null git commit-graph write --no-progress --reachablegit repack -adq

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t