{"thread":{"id":"17438","subject":"how to clean up remote/ref","startedAt":"2009-01-29T15:42:17Z","lastAt":"2009-01-29T15:42:17Z","messageCount":1,"participants":["bill lam"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"102468","messageId":"20090129154217.GA9435@b2j","threadId":"17438","inReplyTo":null,"subject":"how to clean up remote/ref","fromName":"bill lam","fromEmail":"cbill.lam@gmail.com","sentAt":"2009-01-29T15:42:17Z","receivedAt":"2009-01-29T15:42:17Z","isPatch":false,"sender":{"key":"cbill.lam@gmail.com","avatar":null},"body":"When I migrated from svn to git, I keep updating svn repo and also\nadded a dummy git repo, Now the GIT_DIR/config look likes\n\n[core]\n\trepositoryformatversion = 0\n\tfilemode = true\n\tbare = false\n\tlogallrefupdates = true\n[svn-remote \"svn\"]\n  url = http://localhost/svn/project2/\n  fetch = :refs/remotes/trunk\n[remote \"origin\"]\n\turl = http://bl@localhost/git-repo/project/\n\tfetch = +refs/heads/*:refs/remotes/origin/*\n[branch \"master\"]\n\tremote = origin\n\tmerge = refs/heads/master\n\nNow I feel I don't need update the svn repo (actually it was inactive\nfor more than 1 year after a few updates).  Also I no longer want to\nuse http protocol to remote git repo.   \n\nIt said the HEAD is different that orgin/master\n\n$ git checkout master\nSwitched to branch \"master\"\nYour branch and 'origin/master' have diverged,\nand have 71 and 24 different commit(s) each, respectively.\n\nHow do it\n1. remove any reference to the svn repo [svn-remote \"svn\"]\n2. remove reference to the http [remote \"origin\"]\n3. setup a new empty git as the new remote repos\n\nthanks\n\n-- \nregards,\n====================================================\nGPG key 1024D/4434BAB3 2008-08-24\ngpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3\n唐詩277 柳中庸  征人怨\n    歲歲金河復玉關  朝朝馬策與刀環  三春白雪歸青塚  萬里黃河繞黑山\n"}]}