Skip to content

Commit 9e3a9f7

Browse files
authored
Merge pull request #166 from lmarvaud/master
Visualize the tree including commits that are only referenced from reflogs
2 parents 9612421 + 94b41fd commit 9e3a9f7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Diff for: README.md

+6
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
7878
* [Prunes references to remote branches that have been deleted in the remote.](#prunes-references-to-remote-branches-that-have-been-deleted-in-the-remote)
7979
* [Retrieve the commit hash of the initial revision.](#retrieve-the-commit-hash-of-the-initial-revision)
8080
* [Visualize the version tree.](#visualize-the-version-tree)
81+
* [Visualize the tree including commits that are only referenced from reflogs](#visualize-the-tree-including-commits-that-are-only-referenced-from-reflogs)
8182
* [Deploying git tracked subfolder to gh-pages](#deploying-git-tracked-subfolder-to-gh-pages)
8283
* [Adding a project to repo using subtree](#adding-a-project-to-repo-using-subtree)
8384
* [Get latest changes in your repo for a linked project using subtree](#get-latest-changes-in-your-repo-for-a-linked-project-using-subtree)
@@ -672,6 +673,11 @@ gitk --all
672673
git log --graph --pretty=format:'%C(auto) %h | %s | %an | %ar%d'
673674
```
674675

676+
## Visualize the tree including commits that are only referenced from reflogs
677+
```sh
678+
git log --graph --decorate --oneline $(git rev-list --walk-reflogs --all)
679+
```
680+
675681
## Deploying git tracked subfolder to gh-pages
676682
```sh
677683
git subtree push --prefix subfolder_name origin gh-pages

Diff for: tips.json

+3
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@
220220
"title": "Visualize the version tree.",
221221
"tip": "git log --pretty=oneline --graph --decorate --all",
222222
"alternatives": ["gitk --all", "git log --graph --pretty=format:'%C(auto) %h | %s | %an | %ar%d'"]
223+
}, {
224+
"title": "Visualize the tree including commits that are only referenced from reflogs",
225+
"tip": "git log --graph --decorate --oneline $(git rev-list --walk-reflogs --all)"
223226
}, {
224227
"title": "Deploying git tracked subfolder to gh-pages",
225228
"tip": "git subtree push --prefix subfolder_name origin gh-pages",

0 commit comments

Comments
 (0)