-
Install Git.
-
Download VS Code as your code editor.
-
Set Up VS Code to launch from the command line.
-
Install the following extensions:
- Live Server
- Prettier
- Git Lens
-
-
Set up SSH keys for GitHub.
-
(optional) Sign up for a GitHub account and the GitHub Student Pack.
- Navigate to your preferred folder and clone the repository.
$ git clone git@github.com:caterinasworld/fullstack-homework.git fullstack-homework
Cloning into 'fullstack-homework'...
remote: Enumerating objects: 179, done.
remote: Counting objects: 100% (179/179), done.
remote: Compressing objects: 100% (98/98), done.
remote: Total 179 (delta 94), reused 149 (delta 73), pack-reused 0
Receiving objects: 100% (179/179), 39.81 KiB | 251.00 KiB/s, done.
Resolving deltas: 100% (94/94), done.
- Navigate into the newly created
fullstack-homeworkfolder and rename the remote.
$ cd fullstack-homework/
$ git remote -v
origin git@github.com:caterinasworld/fullstack-homework.git (fetch)
origin git@github.com:caterinasworld/fullstack-homework.git (push)
$ git remote rename origin homework
$ git remote -v
homework git@github.com:caterinasworld/fullstack-homework.git (fetch)
homework git@github.com:caterinasworld/fullstack-homework.git (push)-
Navigate to your GitHub account and create a public repository, i.e. student-repo-fullstack.
Important: Do not create a README file. There’s already one in the repository you have cloned.
-
Add your discussion group members as collaborators.
Go to ‘Settings’ → ‘Manage Access’ → click the “Invite a collaborator’ button. Search for everyone's names, emails, or GitHub handles.
-
Add the GitHub repository you created as a remote.
$ git remote add origin git@github.com:student-username/student-repo-fullstack.git
$ git remote -v
homework git@github.com:caterinasworld/fullstack-homework.git (fetch)
homework git@github.com:caterinasworld/fullstack-homework.git (push)
origin git@github.com:student-username/student-repo-fullstack.git (fetch)
origin git@github.com:student-username/student-repo-fullstack.git (push)- Check the branch name. If it's not ‘main,’ update the branch name to ‘main’.
$ git branch
$ git branch -M main- Push the files you cloned into the newly created remote repository.
$ git push -u origin main
Enumerating objects: 163, done.
Counting objects: 100% (163/163), done.
Delta compression using up to 4 threads
Compressing objects: 100% (74/74), done.
Writing objects: 100% (163/163), 68.15 KiB | 13.63 MiB/s, done.
Total 163 (delta 80), reused 163 (delta 80), pack-reused 0
remote: Resolving deltas: 100% (80/80), done.
To github.com:student-username/student-repo-fullstack.git
* [new branch] main -> main
Branch 'main' set up to track remote branch 'main' from 'origin'.- Once 'main' is set up to track the remote origin, you can push changes with the following command.
$ git push- When there are updates to the homework starter files, pull the new updates from the ‘homework’ remote.
$ git pull homework main- Create a new branch.
$ git branch <newbranch>
$ git checkout <newbranch>
or
$ git checkout -b <newbranch>-
Make changes to your code in that branch.
-
Commit the changes to the remote.
$ git add <filename>
$ git commit -m <commitmessage>
$ git push <remote> <branchname>-
When your code is pushed to the remote, you will see a link to the PR in the commnand line. Alternatively, you can open the remote repository on GitHub and search for your PR in the "Pull requests" tab.
-
Add the students from your Canvas discussion group as reviewers on the pull request.
In the PR description, make sure to explain what changes you made, why you made those changes, and what feedback you are looking for.
- Use the Airbnb JavaScript Style Guide for all JavaScript code submitted.
- How to Create a Pull Request | GitHub
- How to write the description for your pull request or for how to give feedabck
- Examples of pull requests: