Last active
May 15, 2018 10:29
-
-
Save PotcFdk/012743605d35e3dc58bb139aaa3990f7 to your computer and use it in GitHub Desktop.
Revisions
-
PotcFdk revised this gist
May 15, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ svn cleanup && svn revert --recursive . goto END :NONE :; else echo This seems to be neither a git nor an svn repository. :; fi; if false; then :END :; fi -
PotcFdk revised this gist
May 15, 2018 . No changes.There are no files selected for viewing
-
PotcFdk created this gist
May 15, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ #!/bin/sh :; # This file runs on both Windows and Linux. / (c) PotcFdk, 2018 :<<":GITRESET" echo off cls if not exist .git goto PRESVNRESET :GITRESET :; if [ -d .git ]; then echo Resetting working copy to origin/master... git fetch && git checkout master && git reset --hard origin/master && git clean -xdf :; elif [ -d .svn ]; then :<<":SVNRESET" goto END :PRESVNRESET if not exist .svn goto NONE :SVNRESET echo Resetting SVN working copy... svn cleanup && svn revert --recursive . :; elif false; then goto END :NONE :; else echo This seems to be neither a git not an svn repository. :; fi; if false; then :END :; fi