-
Install git on your computer.
-
Set up git on your computer, configuring your name and email address (the email you use on GitHub):
git config --global user.name "Becky Smith" git config --global user.email "smith.b@northeastern.edu" -
Create a GitHub account (use a professional, recognizable, memorable, easy-to-type, username).
-
Use your .edu email address to sign up for student developer pack goodies from GitHub.
-
Let git sign in to GitHub. GitHub no longer accepts your password for
git push, so do one of these:- in VS Code, sign in to GitHub from the Accounts icon (bottom left), then push from the Source Control panel;
- install the GitHub CLI and run
gh auth loginonce; or - set up an SSH key (the same idea as logging in to Explorer), and clone with the
git@github.com:…address instead ofhttps://….
On Windows, Git for Windows usually handles this for you: the first push opens a browser window to sign in.
You might need to look up some of the terminology (fork, repository, clone, branch...), but try to follow the steps carefully.
- Fork this repository to your account.
- Clone your fork to your computer.
- Create a new branch called something like
Becky(where you use your own name), and switch to (or check out) that branch. Don't make your changes onmain. - Add your details in the table at the bottom of this README.md file. Copy the template line, and carefully follow an example that's already there, like Richard West. It is formatted in Markdown, or more specifically GitHub Flavored Markdown, so be careful with the pipes and dashes.
- Save your changes.
- Stage your edits.
- Commit your changes, with a commit message, to your branch.
- Push your branch to your fork on GitHub. The first time you push a new branch, tell git where it goes:
After that, plain
git push -u origin Beckygit pushis enough. - Check that it looks right on GitHub: on your fork, pick your branch from the branch menu, and check that your row and avatar show up in the table.
- Open a Pull Request, asking to merge your
Beckybranch (or whatever it's called) intomainof CHME5137/github-assignment, the original repository, not your fork. Right after you push, GitHub usually offers a Compare & pull request button. Give it a short description: what it changes, and (since AI use is encouraged on this assignment) how you used an AI assistant along the way.
Everyone is editing the same table, so if someone else's pull request is merged first, GitHub may say your branch has conflicts that must be resolved. That's normal, and fixing it is part of the exercise:
- On your fork's GitHub page, click Sync fork, to bring your fork's
mainup to date. - On your computer, on your branch:
(
git fetch origin git merge origin/maingit pull origin mainwill refuse, with Need to specify how to reconcile divergent branches.) - Open README.md, find the lines between
<<<<<<<and>>>>>>>, and keep both rows, in alphabetical order. Delete the<<<<<<<,=======and>>>>>>>lines. - Stage, commit and
git push. The pull request updates itself.
Ask for help if you get stuck.
Using git with Jupyter notebooks? Read notebooks-and-git.md for the habits and the setup (jupytext) that we recommend.
People who have completed this assignment, in alphabetical order of last name.
To add yourself, copy this line into the table below, in the right place alphabetically, and replace every LastName, FirstName, husky.id and githubid (the GitHub username appears four times):
LastName | FirstName | husky.id | [githubid](https://github.com/githubid) | 
| Last Name | First Name | husky id | github id | avatar |
|---|---|---|---|---|
| Preston-Werner | Tom | preston-werner.t | mojombo | ![]() |
| Torvalds | Linus | torvalds.l | torvalds | ![]() |
| West | Richard | r.west | rwest | ![]() |


