Skip to content
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:

  1. 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
  1. Your fork's remote repository should be named origin by default, so add the main repository as a remote as well and give it a name to distinguish it from your fork (something like upstream would work):
git remote add upstream https://github.com/parkjs814/AlgorithmVisualizer
  1. Create a branch addressing the issue/improvement you'd like to tackle.
git checkout -b my-problem-fixer-branch
  1. Make your changes and push to my-problem-fixer-branch on your repo
# write some awesome code and then ...
git add .
git commit -m "Explain my awesome changes"
git push origin my-problem-fixer-branch
  1. Next create a pull request from my-problem-fixer-branch branch on origin to master branch on upstream.

  2. Once approved, just delete my-problem-fixer-branch both locally and remotely because it's not needed anymore.

  3. Finally, checkout master locally, pull the approved changes from the upstream repo, and push them to your origin repo:

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 fork

That'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.

Clone this wiki locally