- add remote repos to your local clone
- create a pull request
- comment on a pull request
- ensure that your fork (and clone) are synchronized with changes in the "upstream" repo
- amend a pull request based on feedback
- identify and resolve conflicts
Chapter 16, pages 379-384
-
Pull requests (20 min)
- definition of pull request - cloud service specific
- launch pull request from your repo
- examine pull requests
- comment on someone else's pull request
- opportunity to practice effective communication (e.g. please & thankyou)
- comment on individual lines
- comment on the pull request on the whole
- Notice access controls
- request a review from your pull request
-
Keeping your repo in sync (15 min)
- merge
gonuke
pull request - review your PR - has it changed?
- add uw-ne as remote
- fetch uw-ne
- look at branches
- compare branches: esp.
master
vsuw-ne/master
- rebase
master
ontouw-ne/master
- push your
master
branch to your repo to keep it sync'ed - switch to your element branch
- rebase your branch onto
uw-ne/master
(ormaster
) - push your element branch to your repo now that it's rebased
- review your PR - has it changed?
- merge
-
Update your PR (10 min)
- switch to your element branch
- make (at least) one edit/add/commit cycle (perhaps respond to comment?)
- push your branch to your repo
- review your PR - has it changed?
-
Add a common file (10 min)
- add a file in the top directory called
completed.md
- The first line should read "# List of completed elements"
- The third line should be the name of your element's directory and its english name.
- add/commit this new file
- push this branch to your repo and check the status of your PR
- add a file in the top directory called
-
managing merge conflicts (merge additional PR causing conflict)
- check the status of your PR
- fetch
uw-ne
- rebase your element branch onto
uw-ne
- conflict - note options: abort, continue, skip
- open file with conflict and choose the correct final edits
- add that file (but do NOT commit)
- continue rebase
- push your branch to your repo
- check the status of your PR
-
connect to someone else's Chart of Nuclides repo (15 min)
- add gonuke as remote
- fetch gonuke's repo
- look at branches
- compare branches
-
Change your prompt to constantly show you some git status information
There are a number of different solutions shared on the internet for changing your bash prompt to show you the current branch you are in, and other information. Here are just a few:
-
Your life will be much simpler if you don't have to type your password every time you interact with github. I encourage you to set up an ssh key for this: