Skip to content

Commit 7d23b0b

Browse files
authored
Merge pull request git-tips#166 from lmarvaud/master
Visualize the tree including commits that are only referenced from reflogs
2 parents 6970b17 + 9b004ae commit 7d23b0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
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

0 commit comments

Comments
 (0)