How to configure gitconfig for default remote name?

I want to configure my git (TortoiseGIT) using the global gitconfig file, so that the default remote name when cloning the repository is not the "source", but some other text defines me (for example, "foo").

Is it possible? What directives are those?

thank

Edit: the intention is that I create several small repositories for different independent tasks (documentation!), And I'm tired of changing the name of the remote each time, since it is accessible using shared resources for other users. Therefore, the console name must be my machine name in order to avoid confusion with other versions of git. I know that this is not the best practice, but that life: (.

+5
source share
2 answers

No global configuration. You will need to use git clone --origin foo <source>the "origin" repository name when cloning it:

--origin <name>, -o <name>  
   Instead of using the remote name origin to keep track of the upstream
   repository, use <name>.
+5
source

I'm not sure how to do this in TortoiseGit, but it's easy enough to do this by editing the repo configuration file via the command line:

$ git remote rename origin foo
-2
source

All Articles