Objectives

What is Git?

Version Control System (VCS)

💡 Git is the most popular VCS used by millions of developers worldwide

Git Configuration (First Time Setup)

Before using Git, configure your identity:

# Set your name
git config --global user.name "Your Name"

# Set your email
git config --global user.email "your.email@example.com"

# Check your configuration
git config --list

# Example:
git config --global user.name "Mahfuz Ibne Syful"
git config --global user.email "mahfuzibnesyful24@gmail.com"

💡 Use the same email as your GitHub account!

Git Core Commands

# Initialize a new repository
git init

# Check status of files
git status

# Stage files for commit
git add <file>
git add .

# Commit changes
git commit -m "Your message"

# View commit history
git log --oneline --graph --decorate

What is GitHub?

Cloud Platform for Git

  • Remote hosting for repos
  • Collaboration tools
  • Issue tracking
  • Code review (PRs)
  • CI/CD workflows

Why GitHub?

  • Backup your code
  • Share with team
  • Portfolio showcase
  • Open source community

Connecting to GitHub

# Clone existing repo
git clone <url>

# Add remote to local repo
git remote add origin <url>

# Push to GitHub
git push -u origin main

# Pull latest changes
git pull

Markdown Basics

Markdown is a lightweight markup language for formatting text

# Heading 1
## Heading 2
### Heading 3

**bold text**
*italic text*

- Bullet point
1. Numbered list

[Link text](url)
![Image](image-url)

```code block```
`inline code`

README.md Best Practices

🛠️ Hands-on Exercise

Let's Do This Together!

  1. Create a new folder for your project
  2. Initialize Git: git init
  3. Create README.md with Markdown
  4. Stage and commit: git add . && git commit -m "Initial commit"
  5. Create GitHub repo (on github.com)
  6. Add remote and push: git remote add origin <url>
  7. Verify your repo on GitHub! 🎉

📚 Homework

Resources

1 / 12