User Tools

Site Tools


git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

git [2014/11/24 01:14]
0.0.0.0 created
git [2014/11/24 02:04] (current)
ben
Line 4: Line 4:
 To remove 'subdir' from old.git to new.git To remove 'subdir' from old.git to new.git
  
-{{Root|<source lang="bash">+{{Root|<code bash>
 git clone old.git new git clone old.git new
 cd new cd new
Line 24: Line 24:
 cd old.git cd old.git
 git filter-branch --index-filter "git rm -r -f --cached --ignore-unmatched 'subdir'" --prune-empty HEAD git filter-branch --index-filter "git rm -r -f --cached --ignore-unmatched 'subdir'" --prune-empty HEAD
-</source>}}+</code>}}
  
 Checkout new copies of old.git and new.git on all affected machines. Checkout new copies of old.git and new.git on all affected machines.
git.1416791658.txt.gz · Last modified: 2014/11/24 01:14 by 0.0.0.0