threads / discuss / 21770

change URL

Subject: change URL

## tl;dr

3 messages between Nov 27, 2009 and Nov 27, 2009.

replies: 2people: 3as markdown or json

Rakotomandimby Mihamina· Nov 27, 2009, 09:56 UTC · lore
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· Nov 27, 2009, 11:22 UTC · re: Rakotomandimby Mihamina · lore

Re: change URL

Hi,
Rakotomandimby Mihamina <mihamina@gulfsat.mg> wrote:
Show 6 quoted lines
> 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· Nov 27, 2009, 15:09 UTC · re: Jan Krüger · lore

Re: change URL

Jan Krüger venit, vidit, dixit 27.11.2009 12:22:
Show 14 quoted lines
> 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

← back to recent threads