mirror of
https://github.com/namibia/tips.git
synced 2025-01-23 23:28:30 +00:00
Merge pull request #103 from ck3g/patch-1
Change an interactive rebase description
This commit is contained in:
commit
45ce83ec8f
@ -107,7 +107,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
|||||||
* [Checkout a new branch without any history](#checkout-a-new-branch-without-any-history)
|
* [Checkout a new branch without any history](#checkout-a-new-branch-without-any-history)
|
||||||
* [Extract file from another branch.](#extract-file-from-another-branch)
|
* [Extract file from another branch.](#extract-file-from-another-branch)
|
||||||
* [List only the root and merge commits.](#list-only-the-root-and-merge-commits)
|
* [List only the root and merge commits.](#list-only-the-root-and-merge-commits)
|
||||||
* [Merge previous two commits into one.](#merge-previous-two-commits-into-one)
|
* [Change previous two commits with an interactive rebase.](#change-previous-two-commits-with-an-interactive-rebase)
|
||||||
* [List all branch is WIP](#list-all-branch-is-wip)
|
* [List all branch is WIP](#list-all-branch-is-wip)
|
||||||
* [Find guilty with binary search](#find-guilty-with-binary-search)
|
* [Find guilty with binary search](#find-guilty-with-binary-search)
|
||||||
* [Bypass pre-commit and commit-msg githooks](#bypass-pre-commit-and-commit-msg-githooks)
|
* [Bypass pre-commit and commit-msg githooks](#bypass-pre-commit-and-commit-msg-githooks)
|
||||||
@ -762,7 +762,7 @@ git show <branch_name>:<file_name>
|
|||||||
git log --first-parent
|
git log --first-parent
|
||||||
```
|
```
|
||||||
|
|
||||||
## Merge previous two commits into one.
|
## Change previous two commits with an interactive rebase.
|
||||||
```sh
|
```sh
|
||||||
git rebase --interactive HEAD~2
|
git rebase --interactive HEAD~2
|
||||||
```
|
```
|
||||||
|
@ -325,7 +325,7 @@
|
|||||||
"title": "List only the root and merge commits.",
|
"title": "List only the root and merge commits.",
|
||||||
"tip": "git log --first-parent"
|
"tip": "git log --first-parent"
|
||||||
}, {
|
}, {
|
||||||
"title": "Merge previous two commits into one.",
|
"title": "Change previous two commits with an interactive rebase.",
|
||||||
"tip": "git rebase --interactive HEAD~2"
|
"tip": "git rebase --interactive HEAD~2"
|
||||||
}, {
|
}, {
|
||||||
"title": "List all branch is WIP",
|
"title": "List all branch is WIP",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user