You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 repocd 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 like upstream would work):
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 on origin to master branch on upstream.
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 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