Created
December 17, 2018 21:54
-
-
Save jcoglan/125b55adba55198d18767c092c95af22 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 | |
cd ~/src | |
dir="git-long-uninteresting-branch" | |
git init $dir > /dev/null | |
cd $dir | |
export GIT_COMMITTER_DATE="1600000000" | |
seq 1 3 | while read n ; do | |
echo "$n" > file.txt | |
git add . | |
git commit -m "master-$n" | |
done | |
git checkout -b topic master^ | |
export GIT_COMMITTER_DATE="1500000000" | |
seq 1 7 | while read n ; do | |
echo "$n" > file.txt | |
git commit -am "topic-$n" | |
done | |
git log --oneline topic..master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment