Skip to content

Instantly share code, notes, and snippets.

@Mashpy
Last active January 1, 2016 17:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mashpy/8179283 to your computer and use it in GitHub Desktop.
Save Mashpy/8179283 to your computer and use it in GitHub Desktop.
git rebase -i dd61ab23^
This will open and editor showing a list of all commits. Delete the one you want to get rid off. Finish the rebase and push force to repo.
git rebase --continue
git push <<remote>> -f
574 git reset --hard 2633cabf1b7cfe4561c2781cc666e73fcbfc32c1
575 git push origin HEAD --force
git rm . -r --cached
git add .
git commit -m "fixed untracked files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment