4 ms·
No way, (1) would annoy the heck out of people. Plus what if you want to just save off your current status and log off for the day..
by hackerbrother 5y ago
No way, (1) would annoy the heck out of people. Plus what if you want to just save off your current status and log off for the day..
- jasonpeacock 5y agoConfigure the enforcement only for `main` and other release/production branches, let people push whatever they want to their dev/feature branches. When those branches are attempted to be merged they'll fail due to having bad commits and require fixing.
- toomanybeersies 5y ago> Plus what if you want to just save off your current status and log off for the day Strictly speaking, that's what git stash [1] is for. Not so ideal if you want to push your WIP changes to Github though. [1] https://git-scm.com/docs/git-stash https://git-scm.com/docs/git-stash
- icedchai 5y agoYes. In my experience, anything that prevents people from committing to local branches is incredibly annoying. You want people to commit frequently and “save their work.” Checks, quality barriers, etc. are fine at CI time.
- blindmute 5y agoThat's what git stash is for; you can even add a message, just like a commit, to the stash. A commit should always be in a good state, runnable, without lint or other errors.