Skip to content

Instantly share code, notes, and snippets.

@SirGamers
Created November 20, 2023 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SirGamers/5942ab2a85d4a7ecef571fdb739c4a89 to your computer and use it in GitHub Desktop.
Save SirGamers/5942ab2a85d4a7ecef571fdb739c4a89 to your computer and use it in GitHub Desktop.
revert repos back to commit (place inside the repo folder after cloning)
@ECHO OFF
set /p "var2=revert to which commit? (commit id): "
git reset --hard %var2%
echo "push back to github? (y/n)"
choice /C yn
if %errorlevel%==1 git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment