Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should you commit un-buildable code to GitHub? [closed]

Tags:

github

Just curious as to what the general consensus is for committing code of GitHub.

Should you commit only build-able code? Or is there a time when unbuildable code commits have their place?

Or am I totally miss-understanding GitHub completely? If so, please inform me how it should be?

like image 949
KyloRen Avatar asked Aug 19 '26 20:08

KyloRen


1 Answers

If the master needs to stay buildable, I recommend that you make a branch, and merge the branch only when the code is working as intended.

like image 117
Gustavo Magalhães Avatar answered Aug 22 '26 06:08

Gustavo Magalhães



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!