# change URL

3 messages from 2009-11-27 to 2009-11-27. Participants: Rakotomandimby Mihamina, Jan Krüger, Michael J Gruber.
Thread: https://gitlist.dev/t/21770

## Rakotomandimby Mihamina, 2009-11-27 09:56

Subject: change URL
Message-ID: <4B0FA253.6060804@gulfsat.mg>
URL: https://gitlist.dev/e/4B0FA253.6060804%40gulfsat.mg

```
Hi all,
When I first cloned a project, I used the non fully qualified hostname
if the repo:
   $ git clone ssh://git/git/Mailaka

When pushing, it was OK:
   $ git push
   mihamina@git's password:
   Counting objects: 7, done.
   Compressing objects: 100% (4/4), done.
   Writing objects: 100% (4/4), 825 bytes, done.
   Total 4 (delta 3), reused 0 (delta 0)
   To ssh://git/git/Mailaka
      1e91a44..8af5c57  master -> master

Now, I am on a slow network, with a different search domain in resolv.conf.

What should I edit to make "git push" uses "git.rktmb.org" rather than "git.domainsearch-in-resolv.conf"?

-- 
       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                    +261 33 11 207 36

```

## Jan Krüger, 2009-11-27 11:22

Subject: Re: change URL
Message-ID: <20091127122228.660131af@perceptron>
URL: https://gitlist.dev/e/20091127122228.660131af%40perceptron
In-Reply-To: <4B0FA253.6060804@gulfsat.mg>

```
Hi,

Rakotomandimby Mihamina <mihamina@gulfsat.mg> wrote:

> When I first cloned a project, I used the non fully qualified hostname
> if the repo:
>    $ git clone ssh://git/git/Mailaka
> [...] 
> What should I edit to make "git push" uses "git.rktmb.org" rather
> than "git.domainsearch-in-resolv.conf"?

it's in .git/config, and it's rather easy to find there.

Jan

```

## Michael J Gruber, 2009-11-27 15:09

Subject: Re: change URL
Message-ID: <4B0FEB9E.3050009@drmicha.warpmail.net>
URL: https://gitlist.dev/e/4B0FEB9E.3050009%40drmicha.warpmail.net
In-Reply-To: <20091127122228.660131af@perceptron>

```
Jan Krüger venit, vidit, dixit 27.11.2009 12:22:
> Hi,
> 
> Rakotomandimby Mihamina <mihamina@gulfsat.mg> wrote:
> 
>> When I first cloned a project, I used the non fully qualified hostname
>> if the repo:
>>    $ git clone ssh://git/git/Mailaka
>> [...] 
>> What should I edit to make "git push" uses "git.rktmb.org" rather
>> than "git.domainsearch-in-resolv.conf"?
> 
> it's in .git/config, and it's rather easy to find there.
> 
> Jan

:)

git config remote.origin.url ssh://git.rktmb.org/git/Mailaka

Cheers,
Michael

```
