- Clone this repository to Comet
- Test it running
python test_conversion.py
, does it fail? - Checkout the code version just before the last commit, does it still fail? How do you go back to the last commit?
- Identify the commit causing the bug with
git bisect
, see https://git-scm.com/docs/git-bisect
- Create a new branch
fix_bug
- Undo it with
git revert
https://git-scm.com/docs/git-revert
- Try to push it back to the original repository with
git push origin fix_bug
, does it work? - Fork the repository under your Github account through the Github website
- Rename the
origin
remote toupstream
https://help.github.com/articles/renaming-a-remote/ - Add your fork of the repository as a remote to the repository on Comet
git push
yourfix_bug
to your repository- Go to https://github.com/zonca/conversion_tofix, create a Pull Request!
- I will create a new commit in my repository
- Create 2 branches, test
rebase
in one andmerge
in the other - After merge, inspect with
git log --graph --oneline
- I will create a new commit in my repository with a conflict
- Do a rebase and handle conflicts
- Use
git rebase
to completely wipe the commit from history - Try to push
- Wipe the last commit with
git reset --hard