Make sure that you fill out the relevant details in the PR.
The PR which will be having the specific file name as given in the issue, the one whose commit descriptions are relevant, and the code is readable, would be merged.
For docs, make sure that you use markdown syntax. Checkout these links: Markdown Guide, Markdown Cheat-Sheet.
-
Fork the repository to your own GitHub account.
-
Clone the repository to your local machine
$ git clone "https://www.github.com/{Username}/Algorithms.git"
where username is your GitHub account username.
- Create a branch where you can do your local work. Never work on master branch as we do not allow master commits except by admins.
$ git branch {branchname}
$ git checkout branchname
- Do your work and stage your changes.
$ git add <filename>
-
Commit you changes with a commit message containing your name, file(s) worked upon, changes added.
-
Push changes to your forked repository
$ git push -u origin branchname
- Create a pull request to the upstream repository.
- Create upstream as our repository
$ git remote add upstream "https://www.github.com/ekdnam/Algorithms"
- Fetch upstream changes in local machine
$ git fetch upstream
- Switch to master branch
$ git checkout master
- Merge changes in local machine
$ git merge upstream/master
- Push changes to your forked GitHub repository
$ git push -f origin master