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

Re: Switch from svn to git and modify repo completely

From
Matthias Fechner <idefix@fechner.net>
Date
Nov 20, 2011, 22:21 UTC
Message-ID
<4EC97D52.1010308@fechner.net>
In-Reply-To
<20111119225048.384189bc@zappedws>
Am 19.11.2011 19:50, schrieb Alexey Shumkin:
> take a look at "git filter-branch"

thanks a lot for your answer. I checked the manual page, but it does not work like I expected it or it is described. What I did:

1. I searched the path name with the command:
git show --pretty="format:" --name-only firstrev..endrev | sort | uniq
|grep sdcc
2. I tried to remove the file with the command:
git filter-branch -f --tree-filter 'rm -f
software/tools/net.sourceforge.eclipsesdcc-1.0.0-win32.x86.zip'
--prune-empty -- --all
git told me:
Ref 'refs/heads/master' was rewritten
Ref 'refs/remotes/origin/master' was rewritten
WARNING: Ref 'refs/remotes/origin/master' is unchanged
3. I cloned the repository with:
git clone --no-hardlinks repo-orig.git repo-filtered.git
4. After this I verified in the repo-filtered.git that the file was
really completely removed, but it was not the case. I was able to
checkout the revision which holds the file.

Regarding the manual page it should work... but reality is different. Has here anyone an idea what I did wrong?

Bye Matthias

-- 
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook
Previous: Alexey ShumkinNext: Jonathan Nieder
Message 3 of 6 in “Switch from svn to git and modify repo completely”
  1. Matthias FechnerNov 19, 2011
  2. Alexey ShumkinNov 19, 2011
  3. Matthias FechnerNov 20, 2011
  4. Jonathan NiederNov 21, 2011
  5. Matthias FechnerNov 27, 2011
  6. Matthias FechnerNov 28, 2011

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.