Here's an adapted version of your CONTRIBUTING guide for the Build-your-own-Git-opensource repository:
Welcome aboard! Your contributions, big or small, help improve this project.
New to Git or GitHub? No problem! Here are some useful resources:
- Forking a Repository
- Cloning a Repository
- How to Create a Pull Request
- Getting Started with Git and GitHub
- Learn GitHub from Scratch
-
⭐ Star this repo.
-
🍴 Fork the repository to your account.
-
💻 Clone your fork:
git clone https://github.com/<your-username>/Build-your-own-Git-opensource.git
-
📁 Enter the project directory:
cd Build-your-own-Git-opensource -
🚧 Create a new branch:
git checkout -b feature/your-feature-name
-
✏️ Make your changes.
-
➕ Stage your changes:
git add . -
📝 Commit with a clear message:
git commit -m "Add <feature>: brief description" -
🆙 Push to your fork:
git push -u origin feature/your-feature-name
-
🔁 Create a Pull Request on GitHub.
-
🎉 Celebrate — you just contributed!
- Open GitHub Desktop and sign in.
- Clone the repository via “File → Clone Repository.”
- Switch to your branch or create a new one.
- Make edits in your code editor.
- Commit in GitHub Desktop, adding a summary and description.
- Push your changes using the “Push origin” button.
- Open a Pull Request via the GitHub website.
- Code style: Follow the existing format with clean, readable code.
- Descriptive names: Use clear names for functions, variables, and test cases.
- Keep it DRY: Avoid repeating code by refactoring shared logic.
- Comment wisely: Document why things are done (not just what).
- Write tests: Cover expected behavior and edge cases. Run them locally.
- Peer review: Review others’ PRs and provide constructive feedback.
When opening a PR:
- ✅ Self-review first.
- ✍️ Explain what you've added or changed.
- 🛠️ Comment on complex code to help reviewers.
- 📸 Include screenshots if applicable.
- 🧰 Use the PR template provided.
- 🕒 Be patient — review might take a little time.
To report a bug or request a feature:
- Go to the Issues page.
- Provide a concise title and detailed description.
- Avoid duplicate reports—search existing issues first.
- Wait for maintainers to respond before starting work.
We welcome contributions from everyone, but please avoid spammy or irrelevant issues and PRs. We may close those that don't align with the project's goals.
We can’t wait to see what you build! If you have any questions or feedback, feel free to reach out via GitHub issues or contact the maintainer 😊