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 #8

Closed
11 tasks done
krashish8 opened this issue Feb 9, 2021 · 2 comments
Closed
11 tasks done

Task 2: Experience with GitHub & Git #8

krashish8 opened this issue Feb 9, 2021 · 2 comments

Comments

@krashish8
Copy link
Owner

krashish8 commented Feb 9, 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
@krashish8
Copy link
Owner Author

krashish8 commented Feb 9, 2021

ashish@ashish-Inspiron-7570:~/Documents/gsoc/GSoC-pgRouting$ git remote -v

ashish	[email protected]:krashish8/pgrouting.git (fetch)
ashish	[email protected]:krashish8/pgrouting.git (push)
gsoc	[email protected]:pgRouting/GSoC-pgRouting.git (fetch)
gsoc	[email protected]:pgRouting/GSoC-pgRouting.git (push)
origin	[email protected]:krashish8/GSoC-pgRouting.git (fetch)
origin	[email protected]:krashish8/GSoC-pgRouting.git (push)
upstream	[email protected]:pgRouting/pgrouting.git (fetch)
upstream	[email protected]:pgRouting/pgrouting.git (push)

ashish@ashish-Inspiron-7570:~/Documents/gsoc/GSoC-pgRouting$ git fetch upstream

ashish@ashish-Inspiron-7570:~/Documents/gsoc/GSoC-pgRouting$ 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 <new-branch-name>

Or undo this operation with:

  git switch -

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

HEAD is now at 493afd4c92 Update conf.py.in

ashish@ashish-Inspiron-7570:~/Documents/gsoc/GSoC-pgRouting$ git checkout -b ashish-test

Switched to a new branch 'ashish-test'

ashish@ashish-Inspiron-7570:~/Documents/gsoc/GSoC-pgRouting$ git push

fatal: The current branch ashish-test has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin ashish-test

ashish@ashish-Inspiron-7570:~/Documents/gsoc/GSoC-pgRouting$ git push --set-upstream origin ashish-test

Total 0 (delta 0), reused 0 (delta 0)
remote: 
remote: Create a pull request for 'ashish-test' on GitHub by visiting:
remote:      https://github.com/krashish8/GSoC-pgRouting/pull/new/ashish-test
remote: 
To github.com:krashish8/GSoC-pgRouting.git
 * [new branch]            ashish-test -> ashish-test
Branch 'ashish-test' set up to track remote branch 'ashish-test' from 'origin'.

ashish@ashish-Inspiron-7570:~/Documents/gsoc/GSoC-pgRouting$ git commit --allow-empty -m "Empty Commit: Name already present in contributor list"

[ashish-test 9d48e40188] Empty Commit: Name already present in contributor list

ashish@ashish-Inspiron-7570:~/Documents/gsoc/GSoC-pgRouting$ git push

Enumerating objects: 1, done.
Counting objects: 100% (1/1), done.
Writing objects: 100% (1/1), 883 bytes | 9.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To github.com:krashish8/GSoC-pgRouting.git
   493afd4c92..9d48e40188  ashish-test -> ashish-test

@krashish8
Copy link
Owner Author

krashish8 commented Feb 9, 2021

Link of the branch: https://github.com/krashish8/GSoC-pgRouting/tree/ashish-test
Link of the PR: pgRouting#141

Name is already present in the contributor list: doc/src/pgRouting-introduction.rst

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