1
nebula
4y

it happens too often that after I push something the next commit is something like "I am an idiot" 😑

Comments
  • 0
    Write that to the first commit. Then you can write "I told you so" to the next one.
  • 0
    @electrineer 🤔 that is something i would likely consider
  • 0
    Been there, done that. git commit --amend is your friend 😉
  • 0
    @PuzzlesDev :O I should read the docs. there may be more useful commands I do not know of.
  • 0
    @nebula it won't help you if you already pushed, unless you are into overwriting the history on the remote server
  • 0
    @electrineer nah. if it remote i would not rewrite the history.

    i aim to use git hooks to at least force myself to run unit tests prior to pushing stuff. but i work with visual studio and i have not found a pretty solution to force git hooks (like having them organized in the repo and to be executed on client without additional config). Therefore i have it ingored completely until today.
Add Comment