add the old snippet md files
This commit is contained in:
parent
fc0dd204c7
commit
bcf8313a4b
110 changed files with 3048 additions and 0 deletions
16
old_snippets/git-rebase.en.md
Normal file
16
old_snippets/git-rebase.en.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
title: "rewrite history git history"
|
||||
date: 2020-01-11T04:58:50+01:00
|
||||
draft: false
|
||||
snippet_types: ["git"]
|
||||
---
|
||||
|
||||
```shell
|
||||
$ git rebase -i HEAD~3
|
||||
```
|
||||
|
||||
Using this command you can rewrite a series of commits via dropping, fixing, squshing, and picking. It's most helpful before pushing to a remote repo if you did a bunch of small commits you want to roll into one.
|
||||
|
||||
source:
|
||||
|
||||
[git docs](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History)
|
||||
Loading…
Add table
Add a link
Reference in a new issue