Hacker News new | ask | show | jobs
by middleclick 4444 days ago
Can anyone document a simple workflow with three branches: main (public), development (public) and feature (private).
3 comments

For three branches you can use the git-flow model.[0] Create a public repo, pull it on your local development machine and only push the main and development branch back to the public git repo. On github it is not possible to have private branches. [0]http://danielkummer.github.io/git-flow-cheatsheet/
We use roughly this one in our office: http://nvie.com/posts/a-successful-git-branching-model/