Welcome to Friends Zone DSA Club! 🎉
This repository is for practicing DSA (Data Structures and Algorithms) together. Follow the steps below to contribute your solutions to the repository.
- Click on the Fork button at the top-right of the repository page. This creates a copy of the repository in your GitHub account.
- In your GitHub fork, click on the Code button, and copy the URL (SSH or HTTPS).
- Open your terminal/command prompt and run:
git clone <your-fork-url>
- Navigate into the cloned repository:
cd friends-zone-dsa-club
- Create a new branch with your name (this is optional but recommended to keep your changes organized):
git checkout -b <your-name-branch>
- Navigate into the folder on your name:
cd <your-named-folder>
3.Now start coding. Add your DSA practice code or solution files in this folder.
- Stage your changes:
git add -A
- Commit your changes with a meaningful message:
git commit -m "Added <your-name>'s DSA practice solutions"
- Push your changes to your forked repository on GitHub:
git push origin <your-branch-name>
- Go to the original repository (our main DSA repo) on GitHub.
- Click on the Pull Requests tab.
- Click New Pull Request.
- Select your branch from the dropdown on the right.
- Review your changes and create the Pull Request (PR) with a meaningful title (e.g., "Added 's folder and DSA solutions").
Since you have write access, you can merge your own PR:
- After your PR is created, you will see a Merge button.
- Click on Merge Pull Request to merge your changes into the main branch.
- After merging, delete your branch on GitHub.
To keep your local repository up to date with the latest changes, you should occasionally pull from the main repository:
- Switch to the
master
branch:git checkout master
- Pull the latest changes:
git pull origin master
That's it! 🎉 You're all set to contribute to the Friends Zone DSA Hub. If you have any questions, feel free to ask for help.