First big articles reformatting now that I properly understand hugo
This commit is contained in:
parent
5e6844592a
commit
1a4981a826
40 changed files with 184 additions and 173 deletions
|
@ -1,13 +1,14 @@
|
|||
---
|
||||
title: "Rewrite a git commit history"
|
||||
linkTitle: "Rewrite a git commit history"
|
||||
date: 2018-03-05
|
||||
description: >
|
||||
Rewrite a git commit history
|
||||
description: How to rewrite a git commit history
|
||||
tags:
|
||||
- git
|
||||
---
|
||||
|
||||
## git filter-branch
|
||||
|
||||
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