Version control सिक्नुस् — from zero to professional
Beginner देखि Team Collaboration सम्म — सबै कुरा एकै ठाउँमा
Before writing a single command, let's truly understand what problem Git solves.
Git नभएको बेला के हुन्छ त?
Imagine you're writing a thesis or building an app. Without Git:
project_final.zip, project_final2.zip, project_FINAL_USE_THIS.zip 😭पहिलोपटक Git configure गर्दा के गर्ने?
After installing Git, you must tell it who you are. Every commit you make will be stamped with your name and email — like a signature on a document.
Git को तीन अवस्था — यो नबुझी Git बुझिँदैन!
This is the most important concept to understand. Git has THREE areas your files can be in:
git add -p to stage changes line by line — perfect when one file has two unrelated changes. Very professional!
Branch — parallel universe मा code लेख्ने तरिका!
A branch is like a parallel timeline for your code. You can experiment, add features, or fix bugs — without touching the main working code.
feature/paymenthotfix/login-crashfeature/user-auth — new featurefix/cart-bug — bug fixhotfix/payment-crash — urgent fixdocs/api-guide — documentation
तपाईंको code internet मा राख्नुस् — सधैं safe!
A remote is a copy of your repository hosted on the internet (usually GitHub). Think of it as your code's backup + sharing hub + collaboration center.
गल्ती भयो? घबराउनु पर्दैन! Git ले सबै fix गर्न सकिन्छ।
This is where beginners panic, but Git actually makes recovery easy. The key is knowing which tool to use when.
git reset --hard ले तपाईंको uncommitted changes permanently delete गर्छ! Recovery impossible! Always double-check before using this.
git revert (safe, creates new commit)git reset --soft (commits undo, changes keep)git reset --hard (PERMANENT delete!)
git revert HEAD — एक command, production fixed! History पनि clean रहन्छ। Panic गर्नु पर्दैन!
Real team collaboration को core — PR बिना professional team काम गर्दैन
A Pull Request (PR) is a formal proposal to merge your code changes into the main codebase. It's where code review happens — teammates check your work before it goes live.
Click each step to learn more. यो workflow most Nepali IT companies ले follow गर्छन्!
Try: git init · git status · git log · git branch · git help