简体   繁体   中英

Git error, “unknown option '--short'” - “command failed with exit code 1”

I tried to do a fresh install of a package.json and got the following error:

屏幕截图

Sadly, I do not quite understand the error message and googling the issue also did not work for me.

It looks like you are using a quite aged Git version which doesn't support --short as a rev-parse option.

Check your Git version with git --version .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM