Wow, thanks.
For me it was enough to configure just one rewrite, because my public github
account is associated with my default key. Note that I added the missing slash
and the username:
git config --global \
url.git@gh-org:theorganization/.insteadOf \
On Thu, Jul 19, 2018 at 02:50:16PM +0200, Ævar Arnfjörð Bjarmason wrote:
> > I thought of writing a wrapper script to deduce the key from the arguments:
> >
> > g...@github.com git-upload-pack '/theorganization/privaterepo.git'
> >
> > Is this the only option?
>
> Yes, I had a similar
On Thu, Jul 19, 2018 at 03:24:54PM +0300, Basin Ilya wrote:
> I have two github accounts, one is for my organization and I want git
> to automatically choose the correct ssh `IdentityFile` based on the
> clone URL:
>
> g...@github.com:other/publicrepo.git
>~/.ssh/id_rsa
>
On 07/19/2018 06:52 PM, Sitaram Chamarty wrote:
> On Thu, Jul 19, 2018 at 03:24:54PM +0300, Basin Ilya wrote:
>> Hi.
>>
>> I have two github accounts, one is for my organization and I want git to
>> automatically choose the correct ssh `IdentityFile` based on the clone URL:
>>
>>
On Thu, Jul 19, 2018 at 03:24:54PM +0300, Basin Ilya wrote:
> Hi.
>
> I have two github accounts, one is for my organization and I want git to
> automatically choose the correct ssh `IdentityFile` based on the clone URL:
>
> g...@github.com:other/publicrepo.git
>~/.ssh/id_rsa
>
On Thu, Jul 19 2018, Basin Ilya wrote:
> Hi.
>
> I have two github accounts, one is for my organization and I want git to
> automatically choose the correct ssh `IdentityFile` based on the clone URL:
>
> g...@github.com:other/publicrepo.git
>~/.ssh/id_rsa
>
Hi.
I have two github accounts, one is for my organization and I want git to
automatically choose the correct ssh `IdentityFile` based on the clone URL:
g...@github.com:other/publicrepo.git
~/.ssh/id_rsa
g...@github.com:theorganization/privaterepo.git
7 matches
Mail list logo