aidemia--modules-lessonplan_request | Titles of parts of the lesson must be formatted as headings |
What to create | Lesson script |
Which subject | Computer science |
What topic | Git and Github |
What length (min) | 30 |
What age group | College |
Include homework | |
Include images descriptions | |
Any other preferences |
By the end of this lesson, students will be able to understand the basics of version control systems, articulate the significance of Git and GitHub, and perform fundamental operations in Git including creating a repository, committing changes, and pushing code to GitHub.
30 Minutes
Version Control systems are essential tools in software development that help track changes in code over time. They allow multiple developers to collaborate on projects without losing progress or causing conflicts.
Git is an open-source version control system that allows developers to track changes in source code during software development. It was created by Linus Torvalds in 2005 and has become the de-facto system for version control in software engineering.
GitHub is a cloud-based platform that hosts Git repositories. It offers various collaborative features that enhance workflow among developers and teams.
git --version
in the terminal.Initialize a new repository:
git init my-project
cd my-project
Create a new file:
echo "# My Project" >> README.md
Check status:
git status
Add to staging area:
git add README.md
Commit changes:
git commit -m "Initial commit"
git remote add origin https://github.com/username/my-project.git
git push -u origin master
In this lesson, we covered the basics of version control, explored Git's features, and learned how to use GitHub for hosting our repositories.
Thank you for participating in today’s lesson on Git and GitHub! Remember, practice is key to mastering version control. Happy coding!