I got stuck cause I forgot to put a message to a commit. So, since i did not how to exit the vim
(or whatever) I just got into the .git folder and deleted every file in there.
The thing is that now I get this message:
fatal: bad object HEAD
and if I use the git fsck
this:
error: refs/heads/master: invalid sha1 pointer 92921ef183ebb792a66213ecfd31fa0a4dc32685
error: refs/original/refs/heads/master: invalid sha1 pointer 58c2fbc2fa2645100f45c919cbda6b5bea3f44c3
error: refs/remotes/origin/master: invalid sha1 pointer 92921ef183ebb792a66213ecfd31fa0a4dc32685
error: HEAD: invalid sha1 pointer 92921ef183ebb792a66213ecfd31fa0a4dc32685
error: HEAD: invalid reflog entry 92921ef183ebb792a66213ecfd31fa0a4dc32685
notice: No default references
Finally, I've tried this and got this:
Move-Item : No se encuentra ningún parámetro que coincida con el nombre del parámetro 'rf'.
+ mv -rf .git
+ ~~~
+ CategoryInfo : InvalidArgument: (:) [Move-Item], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.MoveItemCommand
No se encuentra ningún parámetro que coincida con el nombre del parámetro
means something like:
Can't find any parameter that matches with the name of the parameter 'rf'
and same happens with 'mv'.
PD:I know that I shouldn't have deleted everything just like that. But now I don't know how to keep working.