top | item 37619678

(no title)

_nhynes | 2 years ago

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

discuss

order

mdaniel|2 years ago

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