Last active
February 5, 2019 23:48
-
-
Save realityforge/554fbe5cc516e7da52abe0850c33861f to your computer and use it in GitHub Desktop.
Setup a git repository master that points at actual repository
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
| 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