Simply follow the instructions in this brief manual.
Keep in mind that Microverse encourages it's students to search for their own solutions online. If you don't know how to do something required by this exercise, try to google it first. If you still encounte trouble, feel free to contact your Practice Sessions Coordinator.
Before we begin, choose one teammate to be Student A, and another to be Student B. If you've already completed steps 1-3 feel free to skip them. Once you're ready, just follow these steps in order:
- Both
AandB: Create an account on https://github.com/. - Both
AandB: Download and installgit. Windows users can use https://gitforwindows.org/. Linux users can usesudo apt-get install gitinstead. - Both
AandB: Download and installVisual Studio Codefrom here: https://code.visualstudio.com/download. This may take some time, so be patient. - Student
A: Create a new github repository. If you've never done this before, googleHow to create a new github repository. - Student
A: Add studentBas a collaborator to your newly created repository. Again: use google here if you are unfamiliar with this process. - Student
B: You should receive an e-mail with an invitation to become a collaborator. Open it, and accept the invitation on GitHub. - Both
AandB: Clone the repository using thegit clonecommand in terminal you installed on step2. - Both
AandB: Once you've cloned the repo folder on your terminal, use thecd your-repo-namecommand to navigate into the repository folder. Just replaceyour-repo-namewith the name you used to create the repository on github. - Both
AandB: Use thepwdcommand to display the path where the project was saved in your computer. - Both
AandB: Open the repo folder from that path inVisual Studio Code. - Student
A: Add a file to the project namedindex.htmlwith the contentHello, World!and save it. - Student
A: Back at yourgitterminal, enter thegit add .command. - Student
A: Enter thegit commit -m "First commit"command. - Student
A: Enter thegit pushcommand. Enter your GitHub credentials if the terminal requires them. - Both
AandB: Check thegithub.compage of the repo and note how theindex.htmlfile was added there. - Student
B: Using yourgitterminal, enter thegit pullcommand. This should add theindex.htmlfile created byAto your local clone of the project. - Student
B: Open the project onVisual Studio Code. - Student
B: Add the lineHow are you?toindex.html. - Student
B: Just likeAdid before, usegit add .,git commit -m "Updated index",git push, and note how the changes are added to the GitHub page. - Student
A: Usegit pullto apply the changes on your local clone.
Congratulations! Now you know how to collaborate together on a web development project!
Now use your new programming skills to move forward with the HTML/CSS project.
Cheers and Happy Coding :)!
I'm really happy doing this