GitHub is a cloud-based platform to host, share, and collaborate on code using Git. βοΈπ€
1οΈβ£ What is GitHub?
Itβs a remote hosting service for Git repositories β ideal for storing projects, version control, and collaboration. π
2οΈβ£ Create a Repository
- Click New on GitHub β
- Name your repo, add a README (optional)
- Choose public or private π
3οΈβ£ Connect Local Git to GitHub
git remote add origin https://github.com/user/repo.git
git push -u origin main
4οΈβ£ Push Code to GitHub
git add .
git commit -m "Initial commit"
git push
5οΈβ£ Clone a Repository
git clone https://github.com/user/repo.git` π―
6οΈβ£ Pull Changes from GitHub
git pull origin main` π
7οΈβ£ Fork & Contribute to Other Projects
- Click Fork to copy someoneβs repo π΄
- Clone your fork β Make changes β Push
- Submit a Pull Request to original repo π¬
8οΈβ£ GitHub Features
- Issues β Report bugs or request features π
- Pull Requests β Propose code changes π‘
- Actions β Automate testing and deployment βοΈ
- Pages β Host websites directly from repo π
9οΈβ£ GitHub Projects & Discussions
Organize tasks (like Trello) and collaborate with team members directly. ππ£οΈ
π Tips for Beginners
- Keep your README clear π
- Use
.gitignore to skip unwanted files π«- Star useful repos β
- Showcase your work on your GitHub profile π
π‘ GitHub = Your Developer Portfolio. Keep it clean and active.
π¬ Tap β€οΈ for more!