Debugging tips and Tricks
To revert the last commit just do git revert ; then you can push this new commit, which undid your previous commit. To fix the detached head do git checkout .
To test a specific commit, you need the hash. To get the hash you can run git log. To test the previous commit just do git checkout ; then you can test that last working version of your project.