# Jumpstarting a new organization on Github

- Link: https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/
- Published: 2019-09-21T11:43:45-07:00
- Author: rich

Well this is always a little complicated, but some notes on doing this:

 1. If you are [non-profit, Github](https://github.com/nonprofit) actually provides
    you with a free organizational membership. You just send them an email and then
    a copy of your IRS tax status and you get upgraded.
 2. When you create your first repos, you will find that by default you [cannot fork private repo](https://help.github.com/en/articles/allowing-people-to-fork-private-repositories-in-your-organization)
    s. You have to change the settings by going to the organization and looking through
    settings. I’m guessing this is a security issue because you could fork a private
    repo and then make the fork public which would be very bad.
 3. So why fork a private repo so you can create a submodule. The main reason is if
    you are a consultant or have multiple organziations that you work with. If you 
    have a single master repo for your personal use, you can make each one an external
    submodule. Makes it very convenient to keep everything in one place and you can
    reproducibly build your development environment too.
 4. [Use submodules](https://www.google.com/search?q=git+submodule+tutorial&oq=git+submodule+tutorial&aqs=chrome..69i57j0l5.10107j0j7&sourceid=chrome&ie=UTF-8).
    There are two steps here, create an `extern` in your master development repo and
    then there do a `git submodule add git@github.com:yourpersonalrepo/thatrepo`
 5. Now create an upstream branch so you can make changes locally, to your private 
    copy and then push changes as needed to the master. This models the way you commit
    to really external things internally. So this looks like moving into the `newsubrepo`
    directory and running `git remote add git@github.com:upstreamorg/thatrepo`

Now the workflow is pretty standard:

 1. Hack away at your personal branch with `git checkout -b rich-newstuff` and then
    you continuously update your private branch and then the master branch.
 2. When you are ready to push this into the organization, you rebase everything and
    the do a `git push upstream yourbranch:master` and this will make the changes upstream.
    Actually, you will normally do a pull request, but you get the idea. You have two
    layers of isolation. Your dev brancy, your private master and then what is upstream.

### Share this:

 * [  Mastodon ](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/?share=mastodon)
 * [  LinkedIn ](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/?share=linkedin)
 * [  Facebook ](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/?share=facebook)
 * [  WhatsApp ](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/?share=jetpack-whatsapp)
 * [  Email ](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/?subject=%5BShared%20Post%5D%20Jumpstarting%20a%20new%20organization%20on%20Github&body=https%3A%2F%2Ftongfamily.com%2F2019%2F09%2F21%2Fjumpstarting-a-new-organization-on-github%2F&share=email)
 * [More](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/#)

 * [  Telegram ](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/?share=telegram)
 * [  Print ](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/#print?share=print)
 * [  Pinterest ](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/?share=pinterest)
 * [  Tumblr ](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/?share=tumblr)
 * [  X ](https://tongfamily.com/2019/09/21/jumpstarting-a-new-organization-on-github/?share=twitter)

### Like this:

Like Loading…
