Closed Enitishkr closed 4 years ago
### Create remote named upstream: Command: git remote add upstream https://github.com/pgRouting/pgrouting
checkout to the master branch of upstream git fetch upstream git checkout upstream/master
create new branch with name gsoc-test git branch gsoc-test(this creates new branch) git checkout gsoc-test(Branch 'gsoc-test' set up to track remote branch 'gsoc-test' from 'origin'.)
push the newly created branch git push origin gsoc-test
You did something wrong, because the test branch has pgRouting/GSoC-pgRouting master branch instead of pgRouting/pgrouting master branch
git remote add upstream https://github.com/pgRouting/pgrouting git remote -v
origin https://github.com/Enitishkr/GSoC-pgRouting.git (fetch) origin https://github.com/Enitishkr/GSoC-pgRouting.git (push) upstream https://github.com/pgRouting/pgrouting (fetch) upstream https://github.com/pgRouting/pgrouting (push)
git fetch upstream git checkout upstream/master git branch --all
* (HEAD detached at upstream/master) gsoc-test master remotes/origin/HEAD -> origin/master remotes/origin/boost-alg remotes/origin/develop remotes/origin/gsoc-test remotes/origin/master remotes/origin/moore-alg remotes/origin/revert-9-toposort remotes/upstream/develop remotes/upstream/gh-pages remotes/upstream/master remotes/upstream/release/2.5 remotes/upstream/release/2.6
git checkout gsoc-test git push origin gsoc-test
pass
upstream
pointing to https://github.com/pgRouting/pgroutingupstream
gsoc-test