-
Fork the Repository by clicking on the symbol at the top right corner.
-
Clone the forked Repository in your local System.
git clone https://github.com/your_user_name/leetCode-Solution.git
-
Check that your fork is the "origin" remote.
git remote add origin URL_OF_FORK
-
Add the project repository as the "upstream" remote.
git remote add upstream URL_OF_FORK
-
Create a new Branch:
git branch -YourBranchName-
git checkout -YourBranchName-
-
Make your contributions.
-
Stage your changes and make a commit.
git add .
git commit -m "<your_commit_message>"
-
Push your local commits to the remote Repository.
git push origin -YourBranchName-
-
Create a PR.