mirror of
https://github.com/git-tips/tips.git
synced 2024-09-21 00:01:03 +02:00
commit
2e647b5ea9
|
@ -104,6 +104,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
||||||
* [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)
|
* [Merge previous two commits into one.](#merge-previous-two-commits-into-one)
|
||||||
|
* [List all branch is WIP](#list-all-branch-is-wip)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @doxie.inject end toc -->
|
||||||
|
@ -697,5 +698,10 @@ git log --first-parent
|
||||||
git rebase --interactive HEAD~2
|
git rebase --interactive HEAD~2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## List all branch is WIP
|
||||||
|
```sh
|
||||||
|
git checkout master && git branch --no-merged
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
|
|
@ -311,4 +311,7 @@
|
||||||
}, {
|
}, {
|
||||||
"title": "Merge previous two commits into one.",
|
"title": "Merge previous two commits into one.",
|
||||||
"tip": "git rebase --interactive HEAD~2"
|
"tip": "git rebase --interactive HEAD~2"
|
||||||
|
}, {
|
||||||
|
"title": "List all branch is WIP",
|
||||||
|
"tip": "git checkout master && git branch --no-merged"
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user