Easy Guide: Git & GitHub Setup
π Beginner’s Guide: Set Up Git & GitHub the Easy Way
If you're just starting out in coding or tech, this guide will walk you through creating a GitHub account, installing Git, and linking both tools step-by-step. Super friendly for beginners!
π I. GitHub Account Creation
Why is a GitHub account important?
GitHub helps you save, share, and manage your code online—great for working alone or with a team.
GitHub helps you save, share, and manage your code online—great for working alone or with a team.
- Go to github.com and click “Sign up.”
- Use a professional email address.
- Create a strong password:
- 15+ characters (any combo)
- or at least 8 chars with 1 number + 1 lowercase letter
- Pick a username you'll use in Git commands.
- Solve the CAPTCHA, verify your email, and you're in!
- To confirm your profile, click your profile picture (top right). Your username is right there.
π½ II. Installing Git
What is Git?
Git tracks code changes on your computer. GitHub stores those changes online.
Git tracks code changes on your computer. GitHub stores those changes online.
π Search “Git Download” and open the official Git site.
⬇️ Download the version for your OS (Windows, Mac, etc.)
π Double-click the installer (.exe on Windows).
▶️ Keep everything default—just click “Next” through each screen.
⚙️ Choose “Use Git from the command line and also from 3rd-party software.”
✅ Click “Install” and wait for setup to finish!
π III. Linking Git to GitHub
Now connect Git (your computer) with GitHub (online) so you can push code to the cloud.
- Open Command Prompt (Windows) or Terminal (Mac).
- Set your GitHub username:
git config --global user.name "YourGitHubUsername"
- Set your GitHub email:
git config --global user.email "youremail@example.com"
- Use double quotes "
" "
" to avoid mistakes. - Check your config:
git config --global user.name
git config --global user.email
- If both show the right info—you’re connected!
π TL;DR: Sign up for GitHub, install Git, link with simple commands. Now you’re ready to build and manage code like a pro!
π Quick Reference
Task | Key Action | Why It Matters |
---|---|---|
Create GitHub | Sign up with username + verified email | Needed for sharing/storing code |
Install Git | Run installer & use defaults | Track local changes |
Link Account | Use git config commands | Connect your PC to GitHub |
Verify Setup | View saved username/email via command line | Confirms successful link |
Comments
Post a Comment