Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have a branch and remote called "publish", and a branch and remote called "draft". I suppose if I ever accidentally pushed the draft branch to the publish remote, I'd just delete the branch from the remote.


You could set up an integration to automatically reject a branch called 'draft', if you really cared to.

Edit: this is easy, in fact: you make a copy of your 'publish' branch on the publishing site, call it 'draft', and then protect it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: