[HINDI \ URDU] – Git seekhne mein zyada pareshan mat ho. Git sirf itna hi hai.
Git seekhne mein zyada pareshan mat ho. Git sirf itna hi hai.
git init:
Ye command ek naya Git repository banata hai. Isse aapke project folder mein .git folder create hota hai, jahan Git apne saare data aur history store karta hai.
git clone:
Is command ka istemal kisi existing Git repository ko copy karne ke liye hota hai. Ye remote repository se saari files aur history ko aapke local machine par download karta hai.
git add:
Ye command changes ko staging area mein add karne ke liye use hota hai. Jab aap koi file edit karte hain, to usse commit karne se pehle git add se staging area mein rakhna padta hai.
git commit:
Is command se aap apne staged changes ko repository mein save karte hain. Ye ek snapshot create karta hai, jisse aap future mein dekh sakte hain.
git status:
Ye command aapko current repository ka status dikhata hai, jaise ki kaunse files modified hain, kaunse staged hain, aur kaunse untracked hain.
git diff:
Is command se aap changes dekh sakte hain jo aapne files mein kiye hain. Ye aapko batata hai ki kya kya badla hai.
git checkout:
Ye command kisi specific branch ya commit par switch karne ke liye use hota hai. Isse aap alag-alag branches ya versions dekh sakte hain.
git reset:
Is command se aap apne staging area ko clear kar sakte hain ya kisi commit ko undo kar sakte hain. Ye aapko changes ko wapas le jane ki flexibility deta hai.
git log:
Ye command aapko repository ki commit history dikhata hai. Isse aap dekh sakte hain ki kisne kya changes kiye hain aur kab kiye hain.
git show:
Is command se aap kisi specific commit ki details dekh sakte hain, jaise ki us commit mein kya changes hue the.
git tag:
Ye command aapko specific commits ko label karne ki suvidha deta hai. Tags aksar releases ya important milestones ko mark karne ke liye use hote hain.
git push:
Is command se aap apne local changes ko remote repository mein bhejte hain. Ye aapke commits ko remote server par update karta hai.
git pull:
Ye command remote repository se latest changes ko aapke local repository mein download karta hai. Isse aap apne local copy ko update rakh sakte hain.
2.Branching:
• git branch
• git checkout -b
• git merge
• git rebase
• git branch –set-upstream-to
• git branch –unset-upstream
• git cherry-pick
3.Merging:
• git merge
• git rebase
4.Stashing:
• git stash
• git stash pop
• git stash list
• git stash apply
• git stash drop
5.Remotes:
• git remote
• git remote add
• git remote remove
• git fetch
• git pull
• git push
• git clone –mirror
6.Configuration:
• git config
• git global config
• git reset config
7. Plumbing:
• git cat-file
• git checkout-index
• git commit-tree
• git diff-tree
• git for-each-ref
• git hash-object
• git ls-files
• git ls-remote
• git merge-tree
• git read-tree
• git rev-parse
• git show-branch
• git show-ref
• git symbolic-ref
• git tag –list
• git update-ref
8.Porcelain:
• git blame
• git bisect
• git checkout
• git commit
• git diff
• git fetch
• git grep
• git log
• git merge
• git push
• git rebase
• git reset
• git show
• git tag
9.Alias:
• git config –global alias.<alias> <command>
10.Hook:
• git config –local core.hooksPath <path>