Created
May 31, 2024 12:29
-
-
Save agateau-gg/fb092b8e537d38a0975115cbc0171706 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
create_commit() { | |
git commit --allow-empty -m "$1" | |
} | |
rm -rf repo | |
mkdir repo | |
cd repo | |
git init | |
create_commit A | |
git tag topic_start | |
create_commit B | |
create_commit C | |
git checkout -b topic topic_start | |
create_commit D | |
create_commit E |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment