Hacker News new | ask | show | jobs
by _nhynes 996 days ago

    git commit --amend --no-edit && git push -f
1 comments

We may be splitting hairs given what this thread is going on about, but I strongly advocate for `--force-with-lease` as a sane default versus `-f` so that one does not blow away unexpectedly newer commits to the branch

The devil's in the details, etc, etc, but I think it's a _much_ more sane default, even for single-user setups/branches because accidents can happen and git DGAF