for your consideration: two git aliases that are very useful for debugging CI workflows
[alias]
oops = commit --amend --no-edit
yolo = "!yolo() { git add -- \"$@\"; git oops; git push --force-with-lease; }; yolo"
for your consideration: two git aliases that are very useful for debugging CI workflows
[alias]
oops = commit --amend --no-edit
yolo = "!yolo() { git add -- \"$@\"; git oops; git push --force-with-lease; }; yolo"
--force and yeet with --force-with-lease. If you want to get along with others participating, use yeet. If you disregard the contribution of others and don't care if they get upset, use yolo.--reset-author for good measure (it makes the Authored Date match the Committed Date).To be fair I do understand the joke, but... Why not use a actually good ci system?
Earthly is abandoned but still works OK, I still use it in my projects. I think dagger can be run on dev machines too.
@xgqt joke? where's the joke? i just use these daily now
(i have far too much shit i'm responsible for to entertain converting like a hundred workflows from gha/fja to something "better", especially seeing as some alternatives are definitely actually worse)
$ wc -l .zsh_history
37572 .zsh_history
This machine is just barely over 2 years old.
Previous:
23901 .zsh_history
Previous previous:
203517 .zsh_history
I stopped carrying it over because I realized zsh was rewriting the entire file on logout and that was slowing down closing shells...
@whitequark unsolicited advice, sorry 🙈
- you should escape the inner quotes; right now that's actually just undoing them
- if you use `"$@"` instead of `"$*"` you'll get better support for special chars (including spaces) in file names
- you should put `--` double dashes before the list of file names in case one starts with a dash and would get passed as an option :)
also, I always used `--reuse-message HEAD` but I'm glad `--no-edit` is a thing, I'll start using that :)