Complete all episodes to become a Git master!
Go to code.visualstudio.com
Open VS Code → Install extensions:
VS Code is like a Swiss Army knife for coding! It has built-in Git support, syntax highlighting, and thousands of extensions to make coding easier.
Go to git-scm.com
Open terminal (in VS Code or system):
✅ If you see a version, Git is installed correctly!
Git is a version control system that tracks changes to your code. It's like "Save Points" in a video game - you can always go back if something breaks!
If you see something like git version 2.37.1 Git is installed properly!
In terminal, run these commands with your info:
This identifies you as the author of all your Git commits!
When you work with others, they need to know who made which changes. It's like signing your artwork!
Example: If you're working on a team project, everyone will see that you fixed that tricky bug.
Open VS Code → Open folder/project.
Initialize Git in your project folder:
Create a file → save.
Stage & commit your changes:
🎉 Congratulations! You've made your first Git commit!
git initInitializes a new Git repository - Creates a new Git project
git add .Stages all changes for commit - Prepares your changes to be saved
git commitSaves your changes with a message - Takes a snapshot of your code with a message
Make a repo on GitHub.com (click the + sign)
Copy the repo link (HTTPS)
In terminal, connect your local repo to GitHub:
Now your code is on GitHub! 🎊
GitHub is like a social network for code! You can:
Clone an existing repository to your local machine
Create a new branch for your feature
Switch to your feature branch
Get the latest changes from the main branch
Push your branch to GitHub
1. Create a branch for each new feature
2. Make your changes and commit them
3. Push your branch to GitHub
4. Create a Pull Request to merge your changes
5. Collaborate with others through code reviews
6. Merge your changes after approval