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

Time:03-08

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?

CodePudding user response:

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>
  • Related