git svn - How do I remove a working copy created via git-new-workdir without hosing the original repo? -


i'm using git-new-workdir script present in contrib section of git's codebase: https://github.com/git/git/tree/master/contrib/workdir work multiple branches of same code base simultaneously. on windows, using msysgit , repo git svn repo , not pure git. have no problem creating working copies using command saying:

git-new-workdir original-working-copy new-working-copy branch-name-to-checkout 

but when i'm no longer interested in branch , want rid of working copy, doing rm -rfr new-working-copy hoses original-working-copy.

in hind sight, kinda obvious, given git-new-workdir uses hard links share same .git repo between multiple working copies.

what way clean working copies created way, no longer want on machine?

on normal unix systems, git-new-workdir uses symlinks share original repo, , can rm -rf new-working-copy delete new workdir , fine.

i have no idea might different msysgit change this.


turns out, noted in comments, issue rm on windows uses del, recurses symlinks. deleting symlink requires rmdir.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -