Enitishkr / GSoC-pgRouting

Semi-mirror repository for GSoC students work
GNU General Public License v2.0
0 stars 0 forks source link

Have experience with GitHub & Git #1

Closed Enitishkr closed 4 years ago

Enitishkr commented 4 years ago
Enitishkr commented 4 years ago

### Create remote named upstream: Command: git remote add upstream https://github.com/pgRouting/pgrouting

Enitishkr commented 4 years ago

checkout to the master branch of upstream git fetch upstream git checkout upstream/master

Enitishkr commented 4 years ago

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'.)

Enitishkr commented 4 years ago

push the newly created branch git push origin gsoc-test

cvvergara commented 4 years ago

You did something wrong, because the test branch has pgRouting/GSoC-pgRouting master branch instead of pgRouting/pgrouting master branch

Enitishkr commented 4 years ago

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

cvvergara commented 4 years ago

pass