Day 1 — Setup: GitHub, Git, Python venv
Why / क्यों
English: Every AI project starts with a clean setup. Git saves every change, GitHub shows your work to the world, and a virtual environment keeps each project's libraries separate.
Hindi: हर AI project एक साफ़ setup से शुरू होता है। Git हर बदलाव save करता है, GitHub आपका काम दुनिया को दिखाता है (portfolio), और venv हर project की libraries अलग रखता है।
How it fits together / पूरी तस्वीर
flowchart LR
A[Write code on laptop] --> B[git add]
B --> C[git commit = save point]
C --> D[git push]
D --> E[GitHub = online portfolio]
Step 1 — Create a GitHub repo
- Create an account on github.com.
- Click + → New repository, name it
ai-engineering-journey, choose Public, tick Add a README.
Step 2 — Install Git and set your identity
winget install --id Git.Git -e
git --version
git config --global user.name "your-github-username"
git config --global user.email "your-email@example.com"
Why identity? / पहचान क्यों?
Every commit carries your name and email, like a signature. GitHub links commits to your profile using this email — that builds your green contribution graph.
Step 3 — Clone the repo to your laptop
git clone https://github.com/<your-username>/ai-engineering-journey.git
cd ai-engineering-journey
Step 4 — Create and activate a virtual environment
python -m venv venv
venv\Scripts\activate
Mac / Linux: source venv/bin/activate. After activation you will see (venv) at the start of the terminal line.
Step 5 — .gitignore, README and first push
echo venv/ > .gitignore
git add .
git commit -m "Day 1: setup"
git branch -M main
git push -u origin main
Important
Never push the venv folder — it is heavy and different on every laptop. Daily flow: git add . → git commit -m "message" → git push.
Quiz / अपने आप को test करो
1. What is the difference between Git and GitHub?
Git saves version history on your laptop; GitHub stores it online and shares it.
2. What does git commit do?
It creates a save point of your changes with a message.
3. Why do we use a virtual environment?
To keep each project's library versions separate so they don't clash.
4. Why is venv/ in .gitignore?
It is large and machine-specific, so it should not go to GitHub.
5. What shows that venv is active?
(venv) appears at the start of the terminal line.