Topics discussed in class this week:
• Git
Here you find the readings you have to complete before the fifth lecture.
Deadline Monday
All share a video or a resource (this can be a drawing, article or a pod cast) that was helpful for you the last few weeks with learning JavaScript. Please share this in the channel of your class in Slack. Also write as small note about what the resource i about and why you think it's so helpful (you can share more than one if you like).
Deadline Monday
Give one of your fellow students in Github feedback about their homework of the previous week: create an issue in their repo, telling them what they did great and what they can improve.
Step3
Deadline Wednesday
Git homework for this week:
Pair up with another student in your class. The homework requires two people to work together. Let us call them admin and user.
- admin creates a new repository on github called “animals” (without quotes).
- admin adds a file called “zoo.txt” with some animal generally found in a zoo.
- admin commits and pushes his changes (in master branch)
- admin adds user as a collaborator (find out how to add a collaborator to a git repository)
- user clones a repository from admin (find out how to clone a repository. Note that
git init
is not required when you clone a repository) - user makes a new branch called user-dev
- user adds another file called “pets.txt” with some animals generally found in a home.
- user commits and pushes his branch to remote
- admin pulls the branch crated by user (find out how to pull changes from the repository)
- admin submits the link to his github repository (named animal), where unmesh should be able to see the collaborator’s (i.e. user’s) branch along with his commits.
Note:
The user is not supposed to fork the admin’s repository. admin is supposed to add user as a collaborator and user should just clone the repository (i.e. user will only have the local copy of the repository). Only admin will have the github server copy of the repository. Of course, admin will have its local copy of the repository too.