you are viewing a single comment's thread
view the rest of the comments
[–] 27 points 10 months ago (5 children)

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.

  • source
  • hideshow 5 child comments
  • [–] 15 points 10 months ago (4 children)
  • [–] 6 points 10 months ago* (3 children)

    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.

  • source
  • parent
  • hideshow 3 child comments