Skip to content

Instantly share code, notes, and snippets.

@tjarratt
Last active May 24, 2019 16:51
Show Gist options
  • Save tjarratt/dbc1b94b9f69a11f51d19567abbe4af0 to your computer and use it in GitHub Desktop.
Save tjarratt/dbc1b94b9f69a11f51d19567abbe4af0 to your computer and use it in GitHub Desktop.
Steps for inserting into pal-tracker history (rewriting history)
#!/usr/bin/env bash
echo 'this will CERTAINLY not work without further modifications'
echo 'Dont even think about it'
exit 1
echo 'make the changes you want to make'
git checkout solution
git lola
git rebase mvc-start~ -i
git add -p
git commit --amend --no-edit
git rebase --continue
echo 'move the remaining tags forward'
git tag mvc-start a352bf5 --force
git tag mvc-solution 870b56d --force
git tag migration-start 05aea6b --force
git tag migration-solution 8364e51 --force
git tag jdbc-start ce5349b --force
git tag jdbc-solution 677aa03 --force
git tag actuator-start c0a5f98 --force
git tag actuator-solution 005e012 --force
echo 'overwriting origin with new stuff'
git push origin solution --force-with-lease
git push --tags --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment