home
/
code
/
git-cheat-sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c32e789
)
De-emphasise subsections.
author
Siraaj Khandkar
<siraaj@khandkar.net>
Mon, 6 Oct 2014 18:02:29 +0000
(14:02 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Mon, 6 Oct 2014 18:02:29 +0000
(14:02 -0400)
README.md
patch
|
blob
|
blame
|
history
diff --git
a/README.md
b/README.md
index
a545967
..
d6a1454
100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-7,7
+7,7
@@
How to do stuff with git
Splitting a repo
----------------
-### Remove history of all but select files in cloned repo
+###
##
Remove history of all but select files in cloned repo
```sh
$ cp -Rp old new
$ cd new
@@
-27,7
+27,7
@@
$ git filter-branch \
$ git gc --aggressive --prune=now
```
-### Remove history of previously-removed (not in current tree) files
+###
##
Remove history of previously-removed (not in current tree) files
```sh
$ git log --pretty=format: --name-status \
| awk '$0 != "" {print $2}' \
This page took
0.025636 seconds
and
4
git commands to generate.