Skip to content

Instantly share code, notes, and snippets.

@jriguera
Created August 23, 2015 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jriguera/6f3f7c79ecc711ec96d9 to your computer and use it in GitHub Desktop.
Save jriguera/6f3f7c79ecc711ec96d9 to your computer and use it in GitHub Desktop.
Howto opensource a project ... or howto keep your configuration not public
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