From cfca1753926f61ea51777258c238529dfe90887c Mon Sep 17 00:00:00 2001 From: Prince J Wesley Date: Sat, 29 Aug 2015 05:17:31 +0530 Subject: [PATCH] Tip to display history of HEAD --- README.md | 10 ++++++++-- tips.json | 6 +++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b968ab2..08286b7 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,8 @@ * [rebases 'feature' to 'master' and merges it in to master ](https://github.com/git-tips/tips#rebases-feature-to-master-and-merges-it-in-to-master) * [Archive the `master` branch](https://github.com/git-tips/tips#archive-the-master-branch) * [Modify previous commit without modifying the commit message](https://github.com/git-tips/tips#modify-previous-commit-without-modifying-the-commit-message) -* [Purnes branches that have been deleted in the remote.](https://github.com/git-tips/tips#purnes-branches-that-have-been-deleted-in-the-remote) +* [Prunes branches that have been deleted in the remote.](https://github.com/git-tips/tips#prunes-branches-that-have-been-deleted-in-the-remote) +* [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) @@ -372,7 +373,7 @@ git archive master --format=zip --output=master.zip git add --all && git commit --amend --no-edit ``` -## Purnes branches that have been deleted in the remote. +## Prunes branches that have been deleted in the remote. ```sh git fetch -p ``` @@ -383,5 +384,10 @@ __Alternatives:__ git remote prune origin ``` +## Visualize each position of HEAD in the last 30 days +```sh +git reflog +``` + diff --git a/tips.json b/tips.json index 8f909b2..83a2c0c 100644 --- a/tips.json +++ b/tips.json @@ -210,8 +210,12 @@ "tip": "git add --all && git commit --amend --no-edit" }, { - "title": "Purnes branches that have been deleted in the remote.", + "title": "Prunes branches that have been deleted in the remote.", "tip": "git fetch -p", "alternatives":["git remote prune origin"] + }, + { + "title": "Visualize each position of HEAD in the last 30 days", + "tip": "git reflog" } ]