rishisethia258 / 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 rishisethia258 opened 2 years ago

rishisethia258 commented 2 years ago
rishisethia258 commented 2 years ago

Clone your fork repository in your computer

Create remote named upstream

Checkout to develop branch of upstream

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 409c9e8f1 [docqueries][tsp] removing randomize parameter from calls (#2234)


## Create new branch with name `rishisethia258-test`
- Creating new branch

rs258@rs258:~/Documents/Projects/GSoC-pgRouting$ git switch -c rishisethia258-test

Switched to a new branch 'rishisethia258-test'


## Edit `doc/src/pgRouting-introduction.rst` and put your name
- Editing and Commiting changes

rs258@rs258:~/Documents/Projects/GSoC-pgRouting$ code doc/src/pgRouting-introduction.rst rs258@rs258:~/Documents/Projects/GSoC-pgRouting$ git commit -am "Add name to doc/src/pgRouting-introduction.rst"

[rishisethia258-test 196c5b4ba] Add name to doc/src/pgRouting-introduction.rst 1 file changed, 2 insertions(+), 1 deletion(-)


## Push the newly created branch with the change
- Pushing the `rishisethia258-test` branch

rs258@rs258:~/Documents/Projects/GSoC-pgRouting$ git push origin rishisethia258-test

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), 470 bytes | 470.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 'rishisethia258-test' on GitHub by visiting: remote: https://github.com/rishisethia258/GSoC-pgRouting/pull/new/rishisethia258-test remote: To github.com:rishisethia258/GSoC-pgRouting.git