Skip to content
Jason Park edited this page Jun 9, 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
git submodule init
git submodule update
  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 main would work):
git remote add main 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 gh-pages branch on main.

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

  3. Finally, checkout gh-pages locally, pull the approved changes from the main repo and push them to your origin repo:

git checkout gh-pages  # checkout gh pages locally
git pull main gh-pages # pull new changes from main repository
git push main gh-pages # 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