Git And GitHub Collaborators and teams
Git And GitHub Collaborators and teams
๐ง 1. Version Control System: Git
➤ Git kya hai?
๐ 2. Remote Repository: GitHub / GitLab / Bitbucket
Ye platforms Git ka remote version rakhte hain jahan aapka project host hota hai aur sab developers access karte hain.
๐ Step-by-Step Setup (Multi-Developer Collaboration)
✅ Step 1: Git Install karo
-
Windows: https://git-scm.com/download/win
-
Install karne ke baad, command line me check karo:
✅ Step 2: GitHub Account banao (ya GitLab / Bitbucket)
-
https://github.com pe account banao
-
Ek new repository create karo.
✅ Step 3: Local Git Setup
Run this command
Terminal ya Git Bash me run karo:
git config --global user.name "Rehan Khan"
git config --global user.email "rehan@example.com"
✅ Step 4: Project ko Git se connect karo
Agar project bana hua hai:
cd your-project-folder
git init
git remote add origin https://github.com/username/repo-name.git
git add .
git commit -m "Initial commit"
git push -u origin master # ya main branch
✅ Step 5: Dusre Developer Clone karen:-
Dusra developer repo clone kare:- ab dusre develope ka VS CODE / Any Terminal open kijiye usme ye jo niche command hai usko paste kijiye
git clone https://github.com/username/repo-name.git
cd repo-name
Comments
Post a Comment