diff --git a/README.md b/README.md index b968ab2..1d8ec2b 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) +* [Recover lost commits in the local branches or get information about the state of old branches](https://github.com/git-tips/tips#recover-lost-commits-in-the-local-branches-or-get-information-about-the-state-of-old-branches) @@ -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 ``` +## Recover lost commits in the local branches or get information about the state of old branches +```sh +git reflog +``` + diff --git a/tips.json b/tips.json index 8f909b2..f2eb522 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": "Recover lost commits in the local branches or get information about the state of old branches", + "tip": "git reflog" } ]