mingw32 - Why am I getting error "fatal: 'C:/Program Files (x86)/Git' is outside the repository" when I run "git reset --hard ~1" from within the repository? -
i'm running sourcetree on windows 7 , when open mingw32 command prompt within respository folder (at c:\dev\shayne\quarks) , try delete last commit entering command git reset --hard ~1 error fatal: 'c:/program files (x86)/git' outside repository. title bar of command prompt reads mingw32:c/dev/shayne/quarks. can't find answers on google , i've run command on machine in recent past. causing error , how can fix it?
you typing bad command. want type
git reset --hard head~1 i have no idea why git reports error when type ~1, does.
update:
this appears happen because of tilde expansion.
Comments
Post a Comment