Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 2: Experience with Github and Git #1

Open
11 tasks done
Aniket-debug opened this issue Jan 27, 2023 · 1 comment
Open
11 tasks done

Task 2: Experience with Github and Git #1

Aniket-debug opened this issue Jan 27, 2023 · 1 comment

Comments

@Aniket-debug
Copy link
Owner

Aniket-debug commented Jan 27, 2023

  • Fork the GSoC-pgRouting repository
  • activate issues in your fork
  • open an issue in your fork and put this content on the issue
  • Clone your fork repository in your computer
  • Create remote named upstream pointing to https://github.com/pgRouting/GSoC-pgRouting
  • checkout to the develop branch of upstream
  • create new branch with name <your-git-nick>-test
  • Edit doc/src/pgRouting-introduction.rst and put your name on contributor
  • push the newly created branch with the change
  • Create a pull request to https://github.com/pgRouting/GSoC-pgRouting
  • put link of the PR and of the issue on a comment on the issue you created on GSoC-pgRouting repository
@Aniket-debug
Copy link
Owner Author

Aniket-debug commented Feb 4, 2023

Clone your fork repository in your computer
git clone git@github.com:Aniket-debug/GSoC-pgRouting.git

Cloning into 'GSoC-pgRouting'...
remote: Enumerating objects: 100724, done.
remote: Counting objects: 100% (146/146), done.
root@LAPTOP-9LPQ4150:~/GSoC-pgRouting/build#
remote: Total 100724 (delta 138), reused 137 (delta 137), pack-reused 100578
Receiving objects: 100% (100724/100724), 30.99 MiB | 1.68 MiB/s, done.Resolving deltas: 100% (73229/73229), done.

Change into the current working directory
cd GSoC-pgRouting

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

Fetching Upstream Branches
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 d2a4ab3 Trsp enhancement (#2354)

create new branch with name <your-git-nick>-test
git switch -c Aniket-debug-test

Switched to a new branch 'Aniket-debug-test'

Edit doc/src/pgRouting-introduction.rst and put your name on contributor

git status

root@LAPTOP-9LPQ4150:~/GSoC-pgRouting# git status
On branch Aniket-debug-test
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." 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")

git commit -m "task 2:adding name in contributor list"

[Aniket-debug-test 320b64e] added name in contributor list
1 file changed, 1 insertion(+)

push the newly created branch with the change
git push origin Aniket-debug-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), 448 bytes | 149.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 'Aniket-debug-test' on GitHub by visiting:
remote: https://github.com/Aniket-debug/GSoC-pgRouting/pull/new/Aniket-debug-test
remote:
To github.com:Aniket-debug/GSoC-pgRouting.git

  • [new branch] Aniket-debug-test -> Aniket-debug-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant