Created
August 23, 2015 23:07
-
-
Save jriguera/6f3f7c79ecc711ec96d9 to your computer and use it in GitHub Desktop.
Howto opensource a project ... or howto keep your configuration not public
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GITHUB_URL = Public repo on GitHub. | |
BITBUCKET_URL = Private repo on Bitbucket. | |
Given a upstream repo on GitHub in order to clone it to Bitbucket to keep | |
the configuration non public (for example, to create specific ansible playbooks | |
with a set of roles), do this (only once!). | |
1. Create a new repo on Bitbucket. (BITBUCKET_URL) | |
2. Clone the upstream repo from Github to your local machine: git clone GITHUB_URL | |
3. git remote rename origin upstream BITBUCKET_URL | |
4. git remote add origin | |
5. git push origin master | |
6. git branch master -u origin/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment