squarege / GSoC-pgRouting

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

Task 2: Experience with GitHub & Git #1

Open squarege opened 1 year ago

squarege commented 1 year ago
squarege commented 1 year ago

Clone your fork repository in your computer

git clone https://github.com/squarege/GSoC-pgRouting.git

Cloning into 'GSoC-pgRouting'... remote: Enumerating objects: 130805, done. remote: Counting objects: 100% (4788/4788), done. remote: Compressing objects: 100% (1788/1788), done. remote: Total 130805 (delta 3154), reused 3996 (delta 2828), pack-reused 126017 Receiving objects: 100% (130805/130805), 71.97 MiB | 3.97 MiB/s, done. Resolving deltas: 100% (94572/94572), done.

Create remote named upstream pointing to https://github.com/pgRouting/GSoC-pgRouting

Change directory: cd GSoC-pgRouting

then: git remote add upstream https://github.com/pgRouting/GSoC-pgRouting

checkout to the develop branch of upstream

Fetching remote named upstream: git fetch upstream

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

Checkout to the develop branch of upstream: git checkout upstream/develop

Note: switching to 'upstream/develop'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 3598bbdb5 Merge branch 'cvvergara-pumpup-to-3.6.0' into develop

create new branch with name <your-git-nick>-test

git checkout -b squarege-test

Switched to a new branch 'squarege-test'

push the newly created branch with the change

git add .

git commit -m "adding name into contributor"

[squarege-test 8ee037f67] adding name into contributor 1 file changed, 2 insertions(+), 1 deletion(-)

git push origin squarege-test

Enumerating objects: 9, done. Counting objects: 100% (9/9), done. Delta compression using up to 2 threads Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 439 bytes | 439.00 KiB/s, done. Total 5 (delta 4), reused 0 (delta 0) remote: Resolving deltas: 100% (4/4), completed with 4 local objects. remote: remote: Create a pull request for 'squarege-test' on GitHub by visiting: remote: https://github.com/squarege/GSoC-pgRouting/pull/new/squarege-test remote: To https://github.com/squarege/GSoC-pgRouting.git

  • [new branch] squarege-test -> squarege-test