mirror of
https://github.com/namibia/tips.git
synced 2024-09-28 05:39:00 +00:00
root and merge commits tips.
This commit is contained in:
parent
b238e44ff1
commit
dc8e9d6f96
@ -100,6 +100,7 @@
|
||||
* [Checkout a new branch without any history](https://github.com/git-tips/tips#checkout-a-new-branch-without-any-history)
|
||||
* [File diff between staging and the last file version.](https://github.com/git-tips/tips#file-diff-between-staging-and-the-last-file-version)
|
||||
* [Extract file from another branch.](https://github.com/git-tips/tips#extract-file-from-another-branch)
|
||||
* [List only the root and merge commits.](https://github.com/git-tips/tips#list-only-the-root-and-merge-commits)
|
||||
|
||||
<!-- 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 -->
|
||||
@ -683,5 +684,10 @@ git diff --staged
|
||||
git show <banch_name>:<file_name>
|
||||
```
|
||||
|
||||
## List only the root and merge commits.
|
||||
```sh
|
||||
git log --first-parent
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
Loading…
Reference in New Issue
Block a user