git/list[1] front-page[2] threads[3] people[4] search[5] about
 

how to clean up remote/ref

From
BLbill lam <cbill.lam@gmail.com>
Date
Jan 29, 2009, 15:42 UTC
Message-ID
<20090129154217.GA9435@b2j>

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 柳中庸  征人怨
    歲歲金河復玉關  朝朝馬策與刀環  三春白雪歸青塚  萬里黃河繞黑山
Message 1 of 1 in “how to clean up remote/ref”
  1. bill lamJan 29, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.