Welcome to Dev Tips — a collection of coding wisdom!
This repo is designed for beginners learning Git, GitHub, and open-source collaboration.
- How to fork a repository
- How to clone and branch
- How to make commits and push changes
- How to create a Pull Request
- How to resolve merge conflicts
dev-tips/
├── tips/
│ ├── beginner_tips.md
│ ├── intermediate_tips.md
│ └── advanced_tips.md
└── contributors.md
Each .md file contains categorized developer tips.
You’ll add your own tip to the right file and your name in contributors.md.
Follow these steps carefully
Click the Fork button at the top right of this page.
This creates a copy of this repo under your GitHub account.
Your fork will look like:
[https://github.com/](https://github.com/)<your-username>/dev-tips
Open a terminal and run:
git clone https://github.com/<your-username>/dev-tips.gitThen navigate into the folder:
cd dev-tipsAlways create a new branch for your changes:
git checkout -b add-my-tipOpen the tips/ folder and pick a file based on your experience:
| Category | File |
|---|---|
| Beginner | tips/beginner_tips.md |
| Intermediate | tips/intermediate_tips.md |
| Advanced | tips/advanced_tips.md |
Add your tip at the bottom of the file like this:
- Always write meaningful commit messages. *(Added by Chandrima Hazra)*Then, add your name to the contributors.md file:
- Chandrima Hazragit add .
git commit -m "Added Chandrima’s tip on meaningful commit messages"git push origin add-my-tip- Go to your fork on GitHub.
- You’ll see a prompt to “Compare & pull request”.
- Click it, add a short description, and submit your PR.
Wait for the maintainer to review and merge your contribution
If you see a merge conflict:
-
Pull the latest main branch:
git pull upstream main
-
Resolve conflicts manually in your file.
-
Add and commit again:
git add . git commit -m "Resolved conflict" git push origin add-my-tip