git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to clean up remote/ref
@ 2009-01-29 15:42 bill lam
  0 siblings, 0 replies; only message in thread
From: bill lam @ 2009-01-29 15:42 UTC (permalink / raw)
  To: git

When I migrated from svn to git, I keep updating svn repo and also
added a dummy git repo, Now the GIT_DIR/config look likes

[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[svn-remote "svn"]
  url = http://localhost/svn/project2/
  fetch = :refs/remotes/trunk
[remote "origin"]
	url = http://bl@localhost/git-repo/project/
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

Now I feel I don't need update the svn repo (actually it was inactive
for more than 1 year after a few updates).  Also I no longer want to
use http protocol to remote git repo.   

It said the HEAD is different that orgin/master

$ git checkout master
Switched to branch "master"
Your branch and 'origin/master' have diverged,
and have 71 and 24 different commit(s) each, respectively.

How do it
1. remove any reference to the svn repo [svn-remote "svn"]
2. remove reference to the http [remote "origin"]
3. setup a new empty git as the new remote repos

thanks

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩277 柳中庸  征人怨
    歲歲金河復玉關  朝朝馬策與刀環  三春白雪歸青塚  萬里黃河繞黑山

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-29 15:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29 15:42 how to clean up remote/ref bill lam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).