简体   繁体   中英

Git clone: remove warning "you appear to have cloned an empty repository"

I want to remove the warning when I clone an empty repository with git clone .

Unlike this question , I want a solution that works for all languages. My computer is in French, and the message is warning: Vous semblez avoir cloné un dépôt vide. and some of my co-workers have their computer in english.

Is there a more elegant solution to my problem?

Unfortunately, there is no configuration variable or command line option to turn off this warning (see the code in clone.c ).


The options I see are:

  • disable all of stderr,
  • spot the translation of that message and grep it out,
  • write an alias for git init && git remote add origin <url>

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