Skip to content

Instantly share code, notes, and snippets.

@jhannah
Last active August 18, 2023 00:51
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 jhannah/66bbd0f6ef8f16a9b36420d17c556c8d to your computer and use it in GitHub Desktop.
Save jhannah/66bbd0f6ef8f16a9b36420d17c556c8d to your computer and use it in GitHub Desktop.
YOLO'ing crazy scary freshli-cli git stuff for funsies
-----------------------------------------------------------------------------------------------
So I'm taking my Fork:
https://github.com/jhannah/freshli-cli of the real repo
https://github.com/corgibytes/freshli-cli
And doing CRAZY SCARY STUFF to try to help.
Thread: https://mastodon.social/@mscottford@toot.legacycode.rocks/110900945626250599
Using tecniques from https://stackoverflow.com/a/37001417/4656035
ZOMG THIS IS FREAKY CRAP, AUDIT THE HECK OUT OF THIS BEFORE EVEN CONSIDERING USING MY RESULTS!!
-----------------------------------------------------------------------------------------------
➜ Jays-2017-MacBook-Pro:freshli-cli git:(39491fc5) git show --parents | head
commit 39491fc5373024bec52d48dcfea9f9a0678ff652 306e99d0510369496e81f7aa15e009af531937b8
Author: M. Scott Ford <scott@corgibytes.com>
Date: Sun Sep 27 22:25:21 2020 -0400
Creates initial README
diff --git a/README.md b/README.md
new file mode 100644
index 00000000..ace53f0b
--- /dev/null
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git replace --edit 39491fc5373024bec52d48dcfea9f9a0678ff652
- remove unwanted parent -
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git filter-branch --tag-name-filter cat -- --all
WARNING: git-filter-branch has a glut of gotchas generating mangled history
rewrites. Hit Ctrl-C before proceeding to abort, then use an
alternative filtering tool such as 'git filter-repo'
(https://github.com/newren/git-filter-repo/) instead. See the
filter-branch manual page for more details; to squelch this warning,
set FILTER_BRANCH_SQUELCH_WARNING=1.
Proceeding with filter-branch...
Rewrite 6f91eff3db5d0d0e1ea047cdb767fac2d43fa15a (1270/5643) (73 seconds passed, remaining 251 predicted)...
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git replace --edit 017e90d90a3e8e61e9f7d016f707194aaf720ab4
- remove unwanted parent -
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git filter-branch -f --tag-name-filter cat -- --all
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git replace --edit 0afc7a553b12a438d4543969cdaeda9cf9d70aaf
- remove unwanted parent -
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git replace --edit 1ccd0cbf6707cf4324f6345e7a381a63ba4b8e7b
- remove unwanted parent -
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git filter-branch -f --tag-name-filter cat -- --all
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git replace --edit be19b6e96e039ce2a321c2107b5d34d671d93c02
- remove unwanted parent -
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git filter-branch -f --tag-name-filter cat -- --all
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git replace --edit 2e761c2a1e7b637791966514bbdd27481c92b7e0
- remove unwanted parent -
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git filter-branch -f --tag-name-filter cat -- --all
➜ Jays-2017-MacBook-Pro:freshli-cli git:(c34ea0c3) git replace --edit a502bfcbca13ecebaefc06aa34033e984a639d78
- remove unwanted parent -
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git filter-branch -f --tag-name-filter cat -- --all
git replace --edit 7c949dbfa262fe7c7e0d8780ee3b7482cec7490a
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git filter-branch -f --tag-name-filter cat -- --all
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git replace --edit c181ad2499eab56cbca468e75ea92c20ccd043fb
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git replace --edit ce4249e56dcee97f9f1d0e2b804dd412ef730e25
➜ Jays-2017-MacBook-Pro:freshli-cli git:(main) git filter-branch -f --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment