Welcome to the project! We encourage everyone to contribute. Here’s how to collaborate effectively:
- Fork the repository to create a personal copy of the project on GitHub. You can do this by clicking the "Fork" button in the upper right corner of the repository page.
- Clone your forked repository to your local machine. Replace
<your-username>with your GitHub username:git clone https://github.com/<your-username>/DataStructures-Algorithms.git
- checkout Before making changes, create a new branch for your or fix. This helps keep your work organized:
git checkout -b topic/questionname-yourname
- Make your code changes or updates in your new branch. Remember to write clear and concise commit messages:
git add . git commit -m "Add topic: description of your solution"
git push origin topic/questionname-yourname
- Go to your forked repository on GitHub and click on the "Pull Requests" tab. Then, click the 'New Pull Request' button.
- Select your branch and compare it to the main branch of the original repository.
- Add a descriptive title and a comment explaining your changes, then submit the pull request.
- Once your pull request is submitted, team members will review your changes. Be open to feedback and ready to make adjustments if necessary.
- After approval, your changes will be merged into the main branch.
Regularly sync your fork with the original repository to stay updated with the latest changes.
git fetch upstream
git checkout main
git merge upstream/main