I assume that your origin is your own fork of any project that you want to do also for a tensile request?
Since you will change the story (by resetting the head), you need to click with the -force flag. Find the hash of your last good commit with git log .
Now run
git reset SHA
This will change your head to this step and save the changes to the files since the last good commit, your index will also be reset.
Now you can change your code and execute the commits you made. But you have to do git push --force since you changed the repository history. This means that anyone who forks your repository will no longer be able to distract you from the changes. But you can make a pull request upstream.
Simon Stender Boisen Jan 24 2018-12-12T00: 00Z
source share