ahsmha / GSoC-pgRouting

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

2 Experience with Github and Git #1

Open ahsmha opened 1 year ago

ahsmha commented 1 year ago
ahsmha commented 1 year ago

Fork repo

done using github frontend

Activate issues

> repo settings > general > features > issues 

Open issue and put the todos in description

done

Cloning

~/osrc ❯ git clone git@github.com:ahsmha/GSoC-pgRouting.git
Cloning into 'GSoC-pgRouting'...
Enter passphrase for key '/home/ahmed/.ssh/id_rsa':
remote: Enumerating objects: 116886, done.
remote: Counting objects: 100% (4255/4255), done.
remote: Compressing objects: 100% (1620/1620), done.
remote: Total 116886 (delta 2794), reused 3501 (delta 2482), pack-reused 112631
Receiving objects: 100% (116886/116886), 43.13 MiB | 1.64 MiB/s, done.
Resolving deltas: 100% (85722/85722), done.

~/osrc ❯ cd GSoC-pgRouting/

GSoC-pgRouting ❯ on  main ls
BOOST_LICENSE_1_0.txt  configuration.conf  git      pgtap         tools
ci             CONTRIBUTING.md     include  README.md
cmake              doc         LICENSE  requirements.txt
CMakeLists.txt         docqueries      locale   sql
CODE_OF_CONDUCT.md     doxygen         NEWS     src

Create remote named upstream

GSoC-pgRouting ❯ on  main git remote add upstream https://github.com/pgRouting/GSoC-pgRouting
GSoC-pgRouting ❯ on  main git pull upstream
remote: Enumerating objects: 8913, done.
remote: Counting objects: 100% (8148/8148), done.
remote: Compressing objects: 100% (2516/2516), done.
remote: Total 7323 (delta 5190), reused 6504 (delta 4537), pack-reused 0
Receiving objects: 100% (7323/7323), 5.28 MiB | 3.66 MiB/s, done.
Resolving deltas: 100% (5190/5190), completed with 282 local objects.
From https://github.com/pgRouting/GSoC-pgRouting
 * [new branch]          develop                 -> upstream/develop
 * [new branch]          main                    -> upstream/main
 * [new branch]          manas-2022              -> upstream/manas-2022
 * [new branch]          manas-prepare-pr        -> upstream/manas-prepare-pr
 * [new branch]          nitish-2022             -> upstream/nitish-2022
 * [new branch]          nitish-prepare-pr       -> upstream/nitish-prepare-pr
 * [new branch]          sanskar-2022            -> upstream/sanskar-2022
 * [new branch]          shobhit-2022            -> upstream/shobhit-2022
 * [new branch]          shobhit-prepare-pr      -> upstream/shobhit-prepare-pr
 * [new branch]          vrprouting-develop      -> upstream/vrprouting-develop
 * [new tag]             2020-krashish8-depthFirstSearch-sequentialVertexColoring -> 2020-krashish8-depthFirstSearch-sequentialVertexColoring
 * [new tag]             2022-manas23601-ortools -> 2022-manas23601-ortools
 * [new tag]             2022-nitish-hawickcircuit-function -> 2022-nitish-hawickcircuit-function
 * [new tag]             GSoC-nike0good-2019     -> GSoC-nike0good-2019
 * [new tag]             distclean-so            -> distclean-so
 * [new tag]             gsoc-linegraph-lw       -> gsoc-linegraph-lw
 * [new tag]             gsoc/contraction-lw     -> gsoc/contraction-lw
 * [new tag]             gsoc/flow-lw            -> gsoc/flow-lw
 * [new tag]             gsoc/vrp-lw             -> gsoc/vrp-lw
 * [new tag]             gsoc2018-XJTUmg-lw      -> gsoc2018-XJTUmg-lw
 * [new tag]             gsoc2018-apslight-lw    -> gsoc2018-apslight-lw
 * [new tag]             pgrouting-1.05          -> pgrouting-1.05
 * [new tag]             pgrouting-2.0.0         -> pgrouting-2.0.0
 * [new tag]             pgrouting-2.0.0-alpha   -> pgrouting-2.0.0-alpha
 * [new tag]             pgrouting-2.0.0-beta    -> pgrouting-2.0.0-beta
 * [new tag]             pgrouting-2.0.0-rc2     -> pgrouting-2.0.0-rc2
 * [new tag]             pgrouting-2.0.1         -> pgrouting-2.0.1
 * [new tag]             pgrouting-2.1.0         -> pgrouting-2.1.0
 * [new tag]             pgrouting-2.1.0-alpha   -> pgrouting-2.1.0-alpha
 * [new tag]             pgrouting-2.1.0-beta    -> pgrouting-2.1.0-beta
 * [new tag]             pgrouting-2.1.0-rc1     -> pgrouting-2.1.0-rc1
 * [new tag]             pgrouting-2.1.0-rc2     -> pgrouting-2.1.0-rc2
 * [new tag]             pgrouting-2.1.0-rc3     -> pgrouting-2.1.0-rc3
 * [new tag]             pgrouting-2.2.0         -> pgrouting-2.2.0
 * [new tag]             pgrouting-2.2.0-RC1     -> pgrouting-2.2.0-RC1
 * [new tag]             pgrouting-2.2.0-alpha   -> pgrouting-2.2.0-alpha
 * [new tag]             pgrouting-2.2.0-beta1   -> pgrouting-2.2.0-beta1
 * [new tag]             pgrouting-2.2.0-beta2   -> pgrouting-2.2.0-beta2
 * [new tag]             pgrouting-2.2.1         -> pgrouting-2.2.1
 * [new tag]             pgrouting-2.2.2         -> pgrouting-2.2.2
 * [new tag]             pgrouting-2.2.3         -> pgrouting-2.2.3
 * [new tag]             pgrouting-2.2.4         -> pgrouting-2.2.4
 * [new tag]             pgrouting-2.3.0         -> pgrouting-2.3.0
 * [new tag]             pgrouting-2.3.0-alpha   -> pgrouting-2.3.0-alpha
 * [new tag]             pgrouting-2.3.0-beta    -> pgrouting-2.3.0-beta
 * [new tag]             pgrouting-2.3.0-rc1     -> pgrouting-2.3.0-rc1
 * [new tag]             v2.0.0                  -> v2.0.0
 * [new tag]             v2.0dev                 -> v2.0dev
 * [new tag]             v2.3.1                  -> v2.3.1
 * [new tag]             v2.3.2                  -> v2.3.2
 * [new tag]             v2.4.0                  -> v2.4.0
 * [new tag]             v2.4.0-alpha            -> v2.4.0-alpha
 * [new tag]             v2.4.0-beta             -> v2.4.0-beta
 * [new tag]             v2.4.0-rc               -> v2.4.0-rc
 * [new tag]             v2.4.0-rc1              -> v2.4.0-rc1
 * [new tag]             v2.4.0-rc2              -> v2.4.0-rc2
 * [new tag]             v2.4.1                  -> v2.4.1
 * [new tag]             v2.4.2                  -> v2.4.2
 * [new tag]             v2.5.0                  -> v2.5.0
 * [new tag]             v2.5.0-alpha            -> v2.5.0-alpha
 * [new tag]             v2.5.0-beta             -> v2.5.0-beta
 * [new tag]             v2.5.0-rc               -> v2.5.0-rc
 * [new tag]             v2.5.1                  -> v2.5.1
 * [new tag]             v2.5.2                  -> v2.5.2
 * [new tag]             v2.5.3                  -> v2.5.3
 * [new tag]             v2.6.0                  -> v2.6.0
 * [new tag]             v2.6.1                  -> v2.6.1
 * [new tag]             v2.6.2                  -> v2.6.2
 * [new tag]             2022-shobhit162-cuthillMckeeOrdering-function -> 2022-shobhit162-cuthillMckeeOrdering-function
You asked to pull from the remote 'upstream', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.

Checkout to develop branch

GSoC-pgRouting ❯ on  main git co develop
branch 'develop' set up to track 'upstream/develop'.
Switched to a new branch 'develop'

Create new branch

GSoC-pgRouting ❯ on  deve git co -b ahsmha-test
Switched to a new branch 'ahsmha-test'

GSoC-pgRouting ❯ on  ahsm vim doc/src/pgRouting-introduction.rst

GSoC-pgRouting ❯ on  ahsm [!] git st
On branch ahsmha-test
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
    modified:   doc/src/pgRouting-introduction.rst

no changes added to commit (use "git add" and/or "git commit -a")

GSoC-pgRouting ❯ on  ahsm [!] git add .

GSoC-pgRouting ❯ on  ahsm [+] git cc
[ahsmha-test 339f87d15] Add name in contributor list Name is Ahmed Shadaab
 1 file changed, 1 insertion(+)

Push change

GSoC-pgRouting ❯ on  ahsm git push --set-upstream origin ahsmha-test
Enter passphrase for key '/home/ahmed/.ssh/id_rsa':
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 8 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 1.38 KiB | 708.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
remote:
remote: Create a pull request for 'ahsmha-test' on GitHub by visiting:
remote:      https://github.com/ahsmha/GSoC-pgRouting/pull/new/ahsmha-test
remote:
To github.com:ahsmha/GSoC-pgRouting.git
 * [new branch]          ahsmha-test -> ahsmha-test
branch 'ahsmha-test' set up to track 'origin/ahsmha-test'.
GSoC-pgRouting ❯ on  ahsm
GSoC-pgRouting ❯ on  ahsm

Create a PR to upstream

done using github frontend

Put link of PR and this issue

done