sauravUppoor / workshop

Source, data and docs for the pgRouting workshop
https://workshop.pgrouting.org
Other
0 stars 0 forks source link

Task 2: Experience with GitHub & Git #1

Open sauravUppoor opened 3 years ago

sauravUppoor commented 3 years ago
sauravUppoor commented 3 years ago
saurav@Lantern:~/Desktop/workshop/docs/chapters$ git remote -v
origin  https://github.com/sauravUppoor/workshop (fetch)
origin  https://github.com/sauravUppoor/workshop (push)
upstream    https://github.com/pgRouting/workshop (fetch)
upstream    https://github.com/pgRouting/workshop (push)

saurav@Lantern:~/Desktop/workshop/docs/chapters$ git branch -a
  develop
  main
* sauravUppoor-test
  remotes/origin/HEAD -> origin/main
  remotes/origin/develop
  remotes/origin/gh-pages
  remotes/origin/main
  remotes/origin/sauravUppoor-test
  remotes/upstream/develop
  remotes/upstream/gh-pages
  remotes/upstream/main

saurav@Lantern:~/Desktop/workshop/docs/chapters$ git status
On branch sauravUppoor-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:   chapter-1.rst

no changes added to commit (use "git add" and/or "git commit -a")
saurav@Lantern:~/Desktop/workshop/docs/chapters$ git add chapter-1.rst 
saurav@Lantern:~/Desktop/workshop/docs/chapters$ git status
On branch sauravUppoor-test
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
    modified:   chapter-1.rst

saurav@Lantern:~/Desktop/workshop/docs/chapters$ git commit -m "Append name and bio to authors list"
[sauravUppoor-test 409f17b1] Append name and bio to authors list
 1 file changed, 2 insertions(+)
saurav@Lantern:~/Desktop/workshop/docs/chapters$ git branch
  develop
  main
* sauravUppoor-test
saurav@Lantern:~/Desktop/workshop/docs/chapters$ git push origin sauravUppoor-test 
Username for 'https://github.com': sauravUppoor
Password for 'https://sauravUppoor@github.com': 
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), 567 bytes | 113.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 'sauravUppoor-test' on GitHub by visiting:
remote:      https://github.com/sauravUppoor/workshop/pull/new/sauravUppoor-test
remote: 
To https://github.com/sauravUppoor/workshop
 * [new branch]        sauravUppoor-test -> sauravUppoor-test