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:
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.