forked from algorithm-visualizer/algorithm-visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Contributing
Veljko Tornjanski edited this page Jun 23, 2016
·
7 revisions
NOTE: Check out Project Details before running it locally!
To add changes and improvements or resolve issues, these are the usual steps:
- Fork the project on Github then clone it to your machine:
git clone https://github.com/<your-username>/AlgorithmVisualizer # clone your forked repo
cd AlgorithmVisualizer # navigate inside the created directory
git submodule init # initialize wiki submodule
git submodule update # setup wiki submodule updates- Your fork's remote repository should be named
originby default, so add the main repository as a remote as well and give it a name to distinguish it from your fork (something likeupstreamwould work):
git remote add upstream https://github.com/parkjs814/AlgorithmVisualizer- Create a branch addressing the issue/improvement you'd like to tackle.
git checkout -b my-problem-fixer-branch- Make your changes and push to
my-problem-fixer-branchon your repo
# write some awesome code and then ...
git add .
git commit -m "Explain my awesome changes"
git push origin my-problem-fixer-branch-
Next create a pull request from
my-problem-fixer-branchbranch onorigintomasterbranch onupstream. -
Once approved, just delete
my-problem-fixer-branchboth locally and remotely because it's not needed anymore. -
Finally, checkout
masterlocally, pull the approved changes from theupstreamrepo, and push them to youroriginrepo:
git checkout master # checkout master locally
git pull upstream master # pull new changes from main repository
git push origin master # push the changes to your forkThat's it, everything should be in sync now.
If you run into problems, feel free to ask us for help on gitter
As mentioned, check out Project Details for more information on how to run the project.