Chapter 1 – Welcome to Your First Company
Story Starts Here...
Congratulations! 🎉
Aaj tumne ek software company join ki hai as a SQL Developer.
Manager tumhe laptop deta hai aur bolta hai:
Manager: "Please clone the project and start working on Task #145."
Tum sochte ho...
Git kya hai?
GitHub kya hai?
Clone kya hota hai?
Main branch kya hoti hai?
Mujhe code kahan likhna hai?
Ye confusion almost har fresher ko hota hai.
Is guide ke end tak tum ye sab confidently kar paoge.
Company Environment
Maan lo company ka naam hai ABC Technologies.
Ek HRMS project chal raha hai.
Project ke modules:
HRMS
├── Employee
├── Payroll
├── Attendance
├── Recruitment
├── Reports
└── Dashboard
Is project par 10 developers kaam kar rahe hain.
Tum Attendance module par kaam karoge.
Team Structure
Project Manager
│
┌─────────────┴─────────────┐
Team Lead QA Team
│
┌───────┼───────────┐
Dev A Dev B You
│
GitHub Repository
Sab developers ek hi project par kaam karte hain.
Question:
Agar sab ek hi files edit kare to kya hoga?
Isi problem ko solve karta hai Git.
Without Git
Maan lo tumhare paas project folder hai.
HRMS
Version1
Version2
Version3
Final
Final_New
Latest
Latest_Final
2 hafte baad kisi ko nahi pata chalega ki latest version kaunsa hai.
With Git
Git sari history automatically maintain karta hai.
Commit 1
↓
Commit 2
↓
Commit 3
↓
Commit 4
Kab kisne kya change kiya tha,
sab history me saved hota hai.
Real Office Conversation
Team Lead:
Himanshu, Attendance Report me Employee ID add kar do.
Tum:
Okay.
Ab tum directly coding start nahi karte.
Sabse pehle project download karte ho.
Step 1 – Clone the Project
Manager tumhe repository link bhejta hai.
https://github.com/company/hrms.git
Tum command run karte ho:
git clone https://github.com/company/hrms.git
Git kya karta hai?
GitHub Repository
│
▼
Your Laptop
│
▼
HRMS Project
Ab poora project tumhare laptop par aa gaya.
Step 2 – Open the Project
Visual Studio
VS Code
Visual Studio Code
Ya koi aur IDE.
Tum project open karte ho.
Folder structure kuch aisa dikhega.
HRMS
├── Controllers
├── Models
├── Views
├── Database
├── Reports
└── README.md
Step 3 – Check Current Branch
Sabse pehle check karo tum kis branch me ho.
git branch
Output
* main
Matlab tum Main branch me ho.
IMPORTANT
Yahi sabse common mistake hoti hai.
Naye developers directly Main branch me coding start kar dete hain.
Professional companies me aisa nahi hota.
Main branch usually protected hoti hai.
Tum directly usme push nahi kar sakte.
Step 4 – Pull Latest Code
Coding start karne se pehle latest code lena zaroori hota hai.
git pull origin main
Kyun?
Ho sakta hai kal kisi aur developer ne naye changes kiye ho.
Agar tum latest code nahi loge to baad me merge conflicts aa sakte hain.
Real Office Scenario
Developer A
Morning 9:00
Employee Screen
Developer B
Morning 9:15
Employee Screen
Dono same file edit kar rahe hain.
Agar tum latest code nahi loge,
to shaam ko conflict almost pakka hai.
Isliye har morning pehla command hota hai:
git pull origin main
Today's Task
JIRA me task mila.
Task #145
Add Employee ID column in Attendance Report.
Ab coding start karne se pehle ek aur important step hota hai.
Feature Branch banana.
Aur yahin se real Git workflow shuru hota hai.
Chapter 1 Summary
Aaj humne seekha:
Git company me kyun use hota hai.
Git aur GitHub ka basic role.
Project clone kaise hota hai.
Main branch par direct kaam kyun nahi karna chahiye.
Coding se pehle
git pullkyun zaroori hai.Real office workflow ki starting.
Next Chapter
Chapter 2 – Feature Branch: Coding Start Karne Se Pehle Ye Step Kabhi Skip Mat Karna
Is chapter me hum dekhenge:
Branch kya hoti hai?
main,develop, aurfeaturebranches ka difference.Branch naming convention.
git switch -caurgit checkout -b.Real office example ke saath feature branch create karna.
Ek Suggestion
Ye series bahut valuable ban sakti hai. Main har chapter ko is format me likhunga:
🎯 Real office story
🧠 Concept explanation
💻 Commands
📂 Folder structure
🖼️ ASCII diagrams
⚠️ Common mistakes
✅ Best practices
💼 Interview questions
📝 Practice task