Skip to content

Instantly share code, notes, and snippets.

@jcoglan
Created December 17, 2018 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcoglan/125b55adba55198d18767c092c95af22 to your computer and use it in GitHub Desktop.
Save jcoglan/125b55adba55198d18767c092c95af22 to your computer and use it in GitHub Desktop.
#!/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