diff --git a/README.md b/README.md index 03fedce..8e9bea0 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ * [Import from a bundle](https://github.com/git-tips/tips#import-from-a-bundle) * [Get the name of current branch.](https://github.com/git-tips/tips#get-the-name-of-current-branch) * [Ignore one file on commit (e.g. Changelog).](https://github.com/git-tips/tips#ignore-one-file-on-commit-eg-changelog) +* [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) @@ -366,7 +367,7 @@ __Alternatives:__ git branch -m [] ``` -## rebases 'feature' to 'master' and merges it in to master +## rebases 'feature' to 'master' and merges it in to master ```sh git checkout feature && git rebase @{-1} && git checkout @{-2} && git merge @{-1} ``` @@ -443,5 +444,10 @@ git rev-parse --abbrev-ref HEAD git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog ``` +## Visualize each position of HEAD in the last 30 days +```sh +git reflog +``` + diff --git a/tips.json b/tips.json index d796ff4..3770b92 100644 --- a/tips.json +++ b/tips.json @@ -251,5 +251,9 @@ { "title": "Ignore one file on commit (e.g. Changelog).", "tip": "git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog" + }, + { + "title": "Visualize each position of HEAD in the last 30 days", + "tip": "git reflog" } ]