prakashupes / 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 prakashupes closed 4 years ago

prakashupes commented 4 years ago
prakashupes commented 4 years ago

Create remote named upstream

Command: git remote add upstream https://github.com/pgRouting/pgrouting git remote -v

origin https://github.com/prakashupes/GSoC-pgRouting.git (fetch) origin https://github.com/prakashupes/GSoC-pgRouting.git (push) upstream https://github.com/pgRouting/pgrouting (fetch) upstream https://github.com/pgRouting/pgrouting (push)

prakashupes commented 4 years ago

checkout to the master branch of upstream

git fetch upstream git checkout upstream/master git branch -a


* (HEAD detached at upstream/master)
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/boost-alg
  remotes/origin/develop
  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
prakashupes commented 4 years ago

create new branch with name gsoc-test

git branch gsoc-testgit git checkout gsoc-test

Switched to branch 'gsoc-test'

git status


On branch gsoc-test
nothing to commit, working tree clean
prakashupes commented 4 years ago

push the newly created branch

git push origin gsoc-test
cvvergara commented 4 years ago

Pass