ubuntu - How to find out or change url for Git Repository server -
i've installed git , gitosis on ubuntu server has 3 domain names parked. how know, of these domain names used git construct git access url, example, this: git@xxxxxxxx/repository.git can set xxxxxxx value? thank in advance, git looks great.
(1) domain names - long resolve server ip, shouldn't matter. git connects on ssh, in case gitosis server. if can connect via ssh machine via of parked domains, can use git url.
i don't believe git allows list multiple urls per remote, if want have 3 listed (worst case scenario perhaps) setup 3 remotes, each different domain server.
(2) that's simple. check out .git/config
file inside project directory.
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true [remote "origin"] url = git@github.com:my_awesome_app fetch = +refs/heads/*:refs/remotes/origin/*
you need update url; example, i'm using github :) can add other remotes
manually. tracking upstream branches append info file well, example
[branch "master"] remote = origin merge = refs/heads/master
which follows above listing how git manages tracking of remote branches. hope helps.
cheers, mike.
Comments
Post a Comment