mirror of
https://github.com/git-tips/tips
synced 2024-11-10 05:44:14 +00:00
Merge pull request #166 from lmarvaud/master
Visualize the tree including commits that are only referenced from reflogs
This commit is contained in:
commit
9e3a9f790d
2 changed files with 9 additions and 0 deletions
|
@ -78,6 +78,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
|||
* [Prunes references to remote branches that have been deleted in the remote.](#prunes-references-to-remote-branches-that-have-been-deleted-in-the-remote)
|
||||
* [Retrieve the commit hash of the initial revision.](#retrieve-the-commit-hash-of-the-initial-revision)
|
||||
* [Visualize the version tree.](#visualize-the-version-tree)
|
||||
* [Visualize the tree including commits that are only referenced from reflogs](#visualize-the-tree-including-commits-that-are-only-referenced-from-reflogs)
|
||||
* [Deploying git tracked subfolder to gh-pages](#deploying-git-tracked-subfolder-to-gh-pages)
|
||||
* [Adding a project to repo using subtree](#adding-a-project-to-repo-using-subtree)
|
||||
* [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
|
|||
git log --graph --pretty=format:'%C(auto) %h | %s | %an | %ar%d'
|
||||
```
|
||||
|
||||
## Visualize the tree including commits that are only referenced from reflogs
|
||||
```sh
|
||||
git log --graph --decorate --oneline $(git rev-list --walk-reflogs --all)
|
||||
```
|
||||
|
||||
## Deploying git tracked subfolder to gh-pages
|
||||
```sh
|
||||
git subtree push --prefix subfolder_name origin gh-pages
|
||||
|
|
|
@ -220,6 +220,9 @@
|
|||
"title": "Visualize the version tree.",
|
||||
"tip": "git log --pretty=oneline --graph --decorate --all",
|
||||
"alternatives": ["gitk --all", "git log --graph --pretty=format:'%C(auto) %h | %s | %an | %ar%d'"]
|
||||
}, {
|
||||
"title": "Visualize the tree including commits that are only referenced from reflogs",
|
||||
"tip": "git log --graph --decorate --oneline $(git rev-list --walk-reflogs --all)"
|
||||
}, {
|
||||
"title": "Deploying git tracked subfolder to gh-pages",
|
||||
"tip": "git subtree push --prefix subfolder_name origin gh-pages",
|
||||
|
|
Loading…
Reference in a new issue