Git Notes
Complete step-by-step guide to creating a GitHub account, setting up your profile, configuring security settings, and preparing for your first repositories and collaborations.
GitHub is where developers collaborate and share code. This guide walks you through creating your account, setting up your profile, and configuring security.
Create Your Account
Step 1: Sign Up
- Visit https://github.com
- Click "Sign up"
- Enter email address
- Create password (minimum 8 characters, complexity required)
- Choose username (permanent, visible in all repo URLs)
Username tips:
- Use lowercase letters, numbers, hyphens, underscores
- Avoid numbers in the middle (harder to remember)
- Keep it professional (you'll use it in portfolios)
- Check availability before committing
Step 2: Email Verification
- GitHub sends verification email
- Click the link in email
- Verify email address
Step 3: Complete Setup
- Choose Free plan (recommended to start)
- Select experience level
- Click "Create account"
Configure Your Profile
Add Profile Photo
- Click profile icon (top right) → Settings
- Profile photo → Upload photo or select avatar
- Recommended: Professional headshot or recognizable avatar
Write Bio
- Settings → Public profile
- Bio: 160 characters max
- Examples:
- "Full-stack developer | Python, JavaScript | Open source enthusiast"
- "DevOps engineer | Cloud infrastructure | Building scalable systems"
Add Location & Website
- Location: City, Country
- Website: Your portfolio/personal website
- Company: Your employer (if applicable)
- Twitter: Social media handle
GitHub Settings
Account Security
Two-Factor Authentication (2FA) - RECOMMENDED:
- Settings → Password and authentication
- Two-factor authentication → Enable
- Choose method: App (recommended) or SMS
- Scan QR code with authenticator app (Google Authenticator, Authy)
- Save backup codes in secure location
Step 1: Two-Factor Methods
Recommended Authenticator Apps:
- Google Authenticator
- Microsoft Authenticator
- Authy
- 1Password
Step 2: Backup Codes
Write down or print backup codes. Store securely. These let you access account if you lose phone.
Recovery Options
Email Preferences
Settings → Notifications:
SSH Keys
For secure command-line access without passwords:
# Generate SSH key (on your computer)
ssh-keygen -t ed25519 -C "your@email.com"
# Copy public key
cat ~/.ssh/id_ed25519.pub
# On GitHub:
# Settings → SSH and GPG keys → New SSH key
# Paste public key, savePersonal Access Tokens
For API access or command-line authentication:
# On GitHub:
# Settings → Developer settings → Personal access tokens
# Generate new token
# Select scopes: repo, gist, read:user
# Copy and save securelyYour First Repository
Create Repository
- Click + (top right) → New repository
- Repository name:
my-first-repo - Description: (optional) Your first repository
- Visibility: Public (for learning) or Private
- Initialize with README: Check this box
- Click "Create repository"
Repository Structure
First Commit
On Your Computer
# Clone the repository
git clone https://github.com/your-username/my-first-repo.git
cd my-first-repo
# Configure (if not done globally)
git config user.name "Your Name"
git config user.email "your@github.com"
# Make a change
echo "Learning Git!" >> README.md
# Stage and commit
git add README.md
git commit -m "Add welcome message"
# Push to GitHub
git push origin mainVerify on GitHub
- Go to your repository on GitHub
- Refresh the page
- See your commit in the commit history
- README.md updated with your change
Profile README
Create a special README that displays on your profile:
Create Repository
- New repository
- Name:
your-username(EXACTLY your username) - Make it Public
- Add README.md
Edit README.md
GitHub Pages Setup (Free Website)
# Create repository named: your-username.github.io
# Push HTML/Markdown files
# Your site appears at: https://your-username.github.ioConnect with Others
Follow Users
Click user profile → Follow button
Star Repositories
Click Star button on interesting repos. Your starred repos visible on your profile.
Contribute to Open Source
- Find project on GitHub
- Fork the repository
- Clone your fork
- Create feature branch
- Make changes
- Push to your fork
- Create Pull Request
Troubleshooting
Can't Receive Verification Email
- Check spam folder
- Wait 5 minutes and request new email
- Use different email if needed
Lost 2FA Device
- Use backup codes to access account
- Disable 2FA immediately
- Set up new method
Forgot Password
- Click "Forgot password" on login page
- Follow email instructions
- Create new password
Privacy Settings
Settings → Account security:
Interview Q&A
Q1: Why should you enable two-factor authentication on GitHub?
A: Two-factor authentication adds security layer requiring both password and verification code (from authenticator app or SMS). Even if password compromised, attacker cannot access account without 2FA code. Essential for accounts with valuable code/repositories.
Q2: What's the difference between public and private repositories?
A: Public repositories are visible to everyone, good for open source and portfolio projects. Private repositories only visible to you and invited collaborators, used for commercial/confidential projects. Free GitHub accounts support both types unlimited.
Q3: How do SSH keys provide secure authentication?
A: SSH keys use public-key cryptography. Your private key (kept secret) authenticates with GitHub's public key. More secure than passwords because private key never sent over network. Enable Git operations without storing passwords.
Q4: What goes in your GitHub profile bio?
A: Short professional summary (160 chars max) about your skills and interests. Examples: "Python developer | Web design | Open source", or "DevOps engineer | Cloud infrastructure | Learning Kubernetes". Make it relevant to jobs you're seeking.
Q5: Why create a profile README repository?
A: Repository named exactly as your username gets special treatment—its README displays on your profile homepage. Great way to introduce yourself, showcase skills, highlight projects, display GitHub stats, and make strong first impression on employers/collaborators.
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Create GitHub Account - Sign Up Guide.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Git & GitHub topic.
Search Terms
git-github, git & github, git, github, setup, create, account, create github account - sign up guide
Related Git & GitHub Topics