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!
