6

Am I the only dev who need to git commit && git push everytime I've done more than I would like to redo in case my computer dies?

Comments
  • 1
    Prolly not, but i realized a while ago that i need to commit often, but push less often. If you push too quickly and then realize you forgot one file you can either make another commit or amend/rebase and use -f which always feels like cheating to me (beside being troublesome if you have cocontributors in codebase).

    But if you didn't push... Well... 😎 Nobody will ever know you rebased
  • 0
    Haha I'm working alone, that's why I don't hesitate to push. Also, I'm working on the same code at two different locations, so I need it to be up to date.
    At this point using a pendrive to restore or overwrite files inside a project feels like cheating to me 😂
  • 1
    @jstaiyo funnily enough i also work alone, but still i try to protect myself from bad habits
Add Comment