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 & Git #1

Closed
11 tasks done
veenits123 opened this issue Feb 7, 2021 · 7 comments
Closed
11 tasks done

Task 2: Experience with GitHub & Git #1

veenits123 opened this issue Feb 7, 2021 · 7 comments

Comments

@veenits123
Copy link
Owner

veenits123 commented Feb 7, 2021

  • 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
@veenits123 veenits123 changed the title Task 2: Experience with GitHub & Git Experience with GitHub & Git Feb 8, 2021
@veenits123
Copy link
Owner Author

veenits123 commented Feb 8, 2021

Clone your fork repository in your computer

Command:
git clone https://github.com/Veenits123/GSoC-pgRouting.git


Cloning into 'GSoC-pgRouting'...
remote: Enumerating objects: 4690, done.
remote: Counting objects: 100% (4690/4690), done.
remote: Compressing objects: 100% (1928/1928), done.
remote: Total 105009 (delta 3063), reused 3733 (delta 2547), pack-reused 100319
Receiving objects: 100% (105009/105009), 56.38 MiB | 645.00 KiB/s, done.
Resolving deltas: 100% (74595/74595), done.

@veenits123
Copy link
Owner Author

veenits123 commented Feb 9, 2021

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

Command:
git remote -v


origin	https://github.com/Veenits123/GSoC-pgRouting.git (fetch)
origin	https://github.com/Veenits123/GSoC-pgRouting.git (push)

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


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

@veenits123
Copy link
Owner Author

veenits123 commented Feb 9, 2021

checkout to the develop branch of upstream

Command:
git fetch upstream


From https://github.com/pgRouting/GSoC-pgRouting
 * [new branch]          develop       -> upstream/develop
 * [new branch]          gsoc-ashish   -> upstream/gsoc-ashish
 * [new branch]          gsoc-himanshu -> upstream/gsoc-himanshu
 * [new branch]          gsoc-prakash  -> upstream/gsoc-prakash
 * [new branch]          master        -> upstream/master

Command:
git checkout upstream/develop
git branch -a


* (HEAD detached at upstream/develop)
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/develop
  remotes/origin/gsoc-ashish
  remotes/origin/gsoc-himanshu
  remotes/origin/gsoc-prakash
  remotes/origin/master
  remotes/upstream/develop
  remotes/upstream/gsoc-ashish
  remotes/upstream/gsoc-himanshu
  remotes/upstream/gsoc-prakash
  remotes/upstream/master

@veenits123
Copy link
Owner Author

veenits123 commented Feb 9, 2021

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

Command:
git checkout -b Veenits123-test


Switched to a new branch 'Veenits123-test'

Command:
git status


On branch Veenits123-test
nothing to commit, working tree clean

@veenits123
Copy link
Owner Author

veenits123 commented Feb 9, 2021

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

Command:
git status


On branch Veenits123-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")

Command:
git add doc/src/pgRouting-introduction.rst
git status


On branch Veenits123-test
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   doc/src/pgRouting-introduction.rst


Command:
git commit -m "put my name on contributor"


[Veenits123-test 38295e6d8] put my name on contributor
 1 file changed, 1 insertion(+), 1 deletion(-)

@veenits123
Copy link
Owner Author

push the newly created branch with the change

Command:
git push origin Veenits123-test


Username for 'https://github.com': Veenits123
Password for 'https://Veenits123@github.com': 
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 4 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 445 bytes | 222.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 'Veenits123-test' on GitHub by visiting:
remote:      https://github.com/Veenits123/GSoC-pgRouting/pull/new/Veenits123-test
remote: 
To https://github.com/Veenits123/GSoC-pgRouting.git
 * [new branch]          Veenits123-test -> Veenits123-test

@veenits123
Copy link
Owner Author

veenits123 commented Feb 9, 2021

Create a pull request to https://github.com/pgRouting/GSoC-pgRouting

Link of the branch :
https://github.com/Veenits123/GSoC-pgRouting/tree/Veenits123-test

Link of the PR:
pgRouting#142

Added my name in the contributor list.
doc/src/pgRouting-introduction.rst

@veenits123 veenits123 changed the title Experience with GitHub & Git Task 2: Experience with GitHub & Git Feb 10, 2021
veenits123 pushed a commit that referenced this issue Jul 2, 2021
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