What command did git do with "git reset --har" -
i missed tab key before pressing enter on local git branch, ended executing:
git reset --har
versus intended
git reset --hard
usually git complains when running command appears mistyped. looked through --help git reset , found no args "h","a","r".
it seems have run hard reset, did run? or if ran "--hard" why?
additional info: sylvesterjakubowski$ git --version git version 1.7.12.4 (apple git-37) #on mountain lion.
this per gitcli
doc page:
many commands allow long option "--option" abbreviated unique prefix (e.g. if there no other option name begins "opt", may able spell "--opt" invoke "--option" flag), should spell them out when writing scripts; later versions of git may introduce new option name shares same prefix, e.g. "--optimize", make short prefix used unique no longer unique.
also on same page:
commands support enhanced option parser accepts unique prefix of long option if spelled out, use caution. example, git commit --amen behaves if typed git commit --amend, true until later version of git introduces option shares same prefix, e.g `git commit --amenity" option.
so yeah, ran git reset --hard
Comments
Post a Comment