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"
@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 :)