diff --git a/.vscode/settings.json b/.vscode/settings.json index 4748804..9097a64 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "eslint.enable": false + "eslint.enable": false, + "vsicons.presets.angular": false } \ No newline at end of file diff --git a/README.md b/README.md index 1a0b680..ae22f2a 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Backup untracked files.](#backup-untracked-files) * [List all git aliases](#list-all-git-aliases) * [Show git status short](#show-git-status-short) +* [Checkout a commit prior to a day ago](#checkout-a-commit-prior-to-a-day-ago) @@ -1150,5 +1151,10 @@ git config -l | grep alias | cut -d '.' -f 2 git status --short --branch ``` +## Checkout a commit prior to a day ago +```sh +git checkout master@{yesterday} +``` + diff --git a/tips.json b/tips.json index e32beae..57486bb 100644 --- a/tips.json +++ b/tips.json @@ -484,5 +484,9 @@ },{ "title": "Show git status short", "tip": "git status --short --branch" -} +}, + { + "title": "Checkout a commit prior to a day ago", + "tip": "git checkout master@{yesterday}" + } ]