Skip to content

Instantly share code, notes, and snippets.

@realityforge
Last active February 5, 2019 23:48
Show Gist options
  • Select an option

  • Save realityforge/554fbe5cc516e7da52abe0850c33861f to your computer and use it in GitHub Desktop.

Select an option

Save realityforge/554fbe5cc516e7da52abe0850c33861f to your computer and use it in GitHub Desktop.
Setup a git repository master that points at actual repository
git clone https://github.com/realityforge/RxJS.git
cd RxJS
git remote add upstream https://github.com/Reactive-Extensions/RxJS.git
git fetch upstream
git checkout upstream/master
git branch upstream
git checkout upstream
git push origin upstream
git branch -d master
git checkout --orphan master
git rm --cached -r .
echo "# Peter Donald's RxJS Repository
This repository simply is used to submit commits back to the upstream [RxJS](https://github.com/Reactive-Extensions/RxJS.git)
repository and thus only contains feature branches and no meaningful master branch.
" > README.md
git add -f README.md
git commit -m "Add a README that describes the purpose of the repository."
git push --set-upstream -f origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment