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
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 likemain
would work):
git remote add main 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-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
-
Next create a pull request from
my-problem-fixer-branch
branch onorigin
tomaster
branch onmain
. -
Once approved, just delete
my-problem-fixer-branch
both locally and remotely because it's not needed anymore. -
Finally, checkout
master
locally, pull the approved changes from themain
repo, and push them to yourorigin
repo:
git checkout master # checkout master locally
git pull main master # pull new changes from main repository
git push main 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.