Created
November 20, 2023 21:13
-
-
Save SirGamers/5942ab2a85d4a7ecef571fdb739c4a89 to your computer and use it in GitHub Desktop.
revert repos back to commit (place inside the repo folder after cloning)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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