In general for git
, the master
branch is reserved for only buildable features. Other branches can be reserved for in-progress features to be later merged into the master
branch once completed and tested. GitHub, for the most part, follows these rules too.
To me, it really depends on the kind of project you are working on:
- If the commit is for a private project, (and therefore probably has little following) you can do what you want
- If the commit is for a highly visited project, maybe think twice before submitting unbuildable code without making a note in the commit message that it is unbuildable
As always, if you own the repo, you can follow any rules you like, but if it is owned by another individual, be sure to follow the rules that they set out for the repo.