Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 915 Bytes

CONTRIBUTING.md

File metadata and controls

46 lines (36 loc) · 915 Bytes

Guidelines for Contibution

Open for Contribution

  1. Fork the repository and then clone it. For cloning command is:
$ git clone "https://github.com/<username>/Data-Structure-and-Algorithms"
  1. Do changes and stage them.
$ git add <filename>
  1. Commit you changes with a commit message.
$ git commit -m "<message>"
  1. Push changes to your forked repository
$ git push -u origin branchname
  1. Create a pull request to the upstream repository.

Synchronize forked repository with Main repository (Needed if creating a branch)

  1. Create upstream as our repository
$ git remote add main "https://github.com/kshitizsaini113/Data-Structure-and-Algorithms"
  1. Fetch changes from main repository
$ git fetch main
  1. Merge changes after being fetched
$ git merge main/master
  1. Push changes to your forked repository
$ git push -f origin master