Initialize The Starter Repository
On your HOST machine, both members of the team should follow these instructions together:
- From VSCode, open a new, blank VSCode Window on your HOST machine
- Command Palette > Git Clone: https://github.com/comp423-24f/ex02-starter.git
- After cloning DO NOT follow pop-up suggestions! FIRST:
- Open and read/follow steps in the
docs
directory’sget_started.md
file - Before Starting a DevContainer: Establish a
.env
File inbackend/
- Open and read/follow steps in the
- After starting the container, complete the getting started steps in section “Start the DevContainer” all the way up to “Development Data”
Team Member 0. Setup Team on GitHub Classroom and Configure Remotes/Branches
ONLY ONE MEMBER OF YOUR PAIRING NEEDS TO FOLLOW THESE STEPS
- One member of the team should carefully create the team. Create a team named “EX02 NN” where the NN is the TEAM NUMBER of your group on the pairings page linked to here. Check it closely! Accept the assignment on behalf of your team and, after refreshing, it will create a repository at a location like
github.com/comp423-24f/ex02-angular-todo-team11
. Assignment acceptance link: https://classroom.github.com/a/w5UXJWBQ - “Rename” the
origin
remote repository toupstream
:git remote rm origin
git remote add upstream https://github.com/comp423-24f/ex02-starter.git
- Fetch upstream branches:
git fetch upstream
- Switch to the
ex02-blank
starter branch, then create a branch namedex02
at this point where you will do your work:git switch ex02-blank
(This should not error out! If it does, check prior steps. You should not manually create this branch.)git switch --create ex02
- Add
origin
remote to refer to your team project:git remote add origin [INSERT YOUR TEAM'S REPOSITORY URL FROM GITHUB HERE]
- Push your
ex02
branch to your GitHub repository (now the remote namedorigin
):git push origin ex02
- Open GitHub to your team’s repository and confirm that a branch named
ex02
was pushed! You should see the last commit made byajaygandecha
andkrisjordan
with a commit ID hash prefix of9661663
. - You can also view this commit locally:
git log -1
Team Member 1. Configure Remotes/Branches
Only the member of the team who did not complete the steps above, should complete these steps.
After YOUR TEAMMATE has completed their steps above, you should join the correct team and accept the assignment. This will add you to your team’s repository on GitHub. Assignment acceptance link: https://classroom.github.com/a/w5UXJWBQE Then continue with your local repository setup:
- “Rename” the
origin
remote repository toupstream
:git remote rm origin
git remote add upstream https://github.com/comp423-24f/ex02-starter.git
- Add
origin
remote to refer to your team project:git remote add origin [INSERT YOUR TEAM'S REPOSITORY URL FROM GITHUB HERE]
- Fetch your team’s branches:
git fetch origin
- Switch to your team’s
ex02
branch:git switch ex02
- Confirm the correct state of your repository:
git log -1
should show a commit with message “Todo Feature Setup”.