Git & GitHub Roadmap
Git & GitHub Roadmap
● Topics to Cover:
○ What is Version Control?
○ Benefits of Version Control (tracking changes, collaboration,
rollback)
○ Centralized vs. Distributed Version Control Systems
○ Introduction to Git (a distributed VCS)
2. Setting Up Git
Goal: Install Git and configure basic settings.
● Steps:
1. Install Git:
■ Download Git and install it on your machine.
Initial Configuration:
git config --global user.name "Your Name"
git config --global user.email "youremail@example.com"
git config --global init.defaultBranch main # Set 'main' as default branch
Committing Changes:
git commit -m "Your commit message"
● Topics:
○ Working Directory vs. Staging Area vs. Local Repository
○ The Lifecycle of a File in Git
○ Modifying, Staging, and Committing
● Steps:
1. Create a GitHub Account: Sign up here.
2. Create a Remote Repository on GitHub:
■ Go to GitHub → New Repository → Name it → Create.
Pushing Changes:
git push
● Commands:
Cloning a Repository:
git clone https://github.com/username/repo.git
Merge Branches:
git checkout main
git merge new-feature
Unstage Files:
git reset HEAD <file> # Remove from staging area
● Topics:
1. Forking Repositories:
■ Fork a repo on GitHub to create a copy in your account.
2. Creating Pull Requests:
■ Push your changes to your forked repo and create a pull
request to the original repository.
3. Using Issues:
■ Report bugs or request features using GitHub Issues.
Rebasing:
git rebase main
Tagging:
git tag v1.0
git push origin v1.0
● Best Practices:
○ Write clear and concise commit messages.
○ Commit small, logical changes frequently.
○ Use branches for features, bug fixes, and experiments.
○ Always pull the latest changes before starting new work.
●
● Learning Platforms:
○ Git Documentation
○ GitHub Learning Lab
○ Learn Git Branching (Interactive)