2 - Git and Github
Last updated
Was this helpful?
Last updated
Was this helpful?
We will do the practice assignment provided on page during Saturday's session of second week. There are additional practice projects mentioned at the end of the page. You can find the practice section on MigraCode syllabus website under Introduction section or follow this .
Exercise 0: Upload your first Migracode GitHub project (2 Hours)
Before you started this bootcamp, you have built a website in CodePen and learned the basics of HTML and CSS. Now it's time to learn about the tools that web developers use in their everyday job. These tools will be used during the course, so it is important that you become familiar with them and use them every day.
Export your website as a zip file from CodePen.
Extract the contents of the zip file to a folder on your computer. Make a note of the location of this folder.
Upload the contents of this folder to a Github repository. To do this, you first need to create a new repository in your account on GitHub that has exactly the same name as the folder of the website on your computer. To upload the code from your computer into your GitHub repository: make sure you are in the directory where you have your website code (use cd
to get into that directory). Then use the git add .
, git commit -m "Your message"
and git push
commands as explained.
You should now have a repository with your code in your GitHub account: http://github.com/your-username/your-repository-name
. Here you can see your code, and there should be an overview of your files, including an index.html
file.
Publish your website following .
Exercise 1:
Exercise 2: Learn .
Exercise 3: Watch these videos:
(dont worry about GUI setup)
Exercise 5: Create a repo on GitHub that contains a markdown file that answers these questions:
How do you see the files changed within each commit from git log?
How do you see the contents of what changed within each file from the git log?
What does HEAD
refer to in the context of git? (Not to be confused with the "HEAD<<<<" one observes within merge conflict)
Exercise 4: Skim for an additional refernce.
We can always improve thanks to your feedback, you can use this document to send your ideas or suggestions on every week. This will help us to improve Syllabus and this guide