Ah yes, I hate the fact that you cannot run GitHub Actions workflows locally in order to debug them.
post
Solution:
git commit --amend
git push --force
Problem:
The process of discovering best practices on how to keep a clean git history is a goddamned challenge.
--force-with-lease* 🙃
I didn't want to make it sound too scary 😉
Seriously, though, git really needs an option to treat --force as --force-with-lease. In the exceedingly rare occasion where I might want to completely overwrite a branch, it should be extra explicit by having to type something like --force-and-overwrite.
--force-overwrite-everything-i-know-what-the-heck-i-am-doing
just to be sure...
(/j)
Yeah, I virtually only use --force for moving tags around (which one could definitely argue isn't really a thing you should be doing regularly either)...
That's why I use a separate branch. Use rebase or reset depending on what exactly you need to clean up when it's working.
Don't waste your precious build minutes: act, gitlab-ci-local.
all 26 comments