Skip to content

Commit cd49572

Browse files
committed
Tip to display history of HEAD
1 parent 8234cbe commit cd49572

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
* [Import from a bundle](https://github.com/git-tips/tips#import-from-a-bundle)
6464
* [Get the name of current branch.](https://github.com/git-tips/tips#get-the-name-of-current-branch)
6565
* [Ignore one file on commit (e.g. Changelog).](https://github.com/git-tips/tips#ignore-one-file-on-commit-eg-changelog)
66+
* [Visualize each position of HEAD in the last 30 days](https://github.com/git-tips/tips#visualize-each-position-of-head-in-the-last-30-days)
6667

6768
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
6869
<!-- @doxie.inject end toc -->
@@ -366,7 +367,7 @@ __Alternatives:__
366367
git branch -m [<old-branch-name>] <new-branch-name>
367368
```
368369

369-
## rebases 'feature' to 'master' and merges it in to master
370+
## rebases 'feature' to 'master' and merges it in to master
370371
```sh
371372
git checkout feature && git rebase @{-1} && git checkout @{-2} && git merge @{-1}
372373
```
@@ -443,5 +444,10 @@ git rev-parse --abbrev-ref HEAD
443444
git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog
444445
```
445446

447+
## Visualize each position of HEAD in the last 30 days
448+
```sh
449+
git reflog
450+
```
451+
446452
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
447453
<!-- @doxie.inject end -->

tips.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,9 @@
251251
{
252252
"title": "Ignore one file on commit (e.g. Changelog).",
253253
"tip": "git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog"
254+
},
255+
{
256+
"title": "Visualize each position of HEAD in the last 30 days",
257+
"tip": "git reflog"
254258
}
255259
]

0 commit comments

Comments
 (0)