Rewrote the whole website to get rid on a heavy theme
This commit is contained in:
parent
3ea54810ad
commit
60d3abc6ec
122 changed files with 346 additions and 2558 deletions
13
content/blog/commands/git-rewrite-commit-history.md
Normal file
13
content/blog/commands/git-rewrite-commit-history.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: "Rewrite a git commit history"
|
||||
linkTitle: "Rewrite a git commit history"
|
||||
date: 2018-03-05
|
||||
description: >
|
||||
Rewrite a git commit history
|
||||
---
|
||||
|
||||
Here is how to rewrite a git commit history, for example to remove a file :
|
||||
{{< highlight sh >}}
|
||||
git filter-branch –index-filter "git rm --cached --ignore-unmatch ${file}" --prune-empty --tag-name-filter cat - -all
|
||||
{{< /highlight >}}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue