On Thu, Feb 11, 2016 at 12:57 AM, Gary Mort <gary@xxxxxxxxxxxxxxxx> wrote: > I checked the documentation and scanned through the source code for clone: > https://github.com/git/git/blob/master/builtin/clone.c > > And nothing jumps out at me as a way to specify a default depth using > a global git configuration file. I see the option defined at > https://github.com/git/git/blob/master/builtin/clone.c#L87 > > Since c is not my primary programming language, it may well be that > there is some common parsing function/file which automatically maps > command options to config file options. So, is there a way to set a > default depth for the clone command? No. But it it necessary the _clone_ command? I mean, would this alias suffice? git config --global c1 'clone --depth 1' -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html