1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-22 02:08:53 +00:00

Checkout a commit prior to a day ago.

This commit is contained in:
Hemanth.HM 2017-04-01 01:30:00 +05:30
parent 40253a498c
commit 39d1012fc9
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,4 @@
{
"eslint.enable": false
"eslint.enable": false,
"vsicons.presets.angular": false
}

View File

@ -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)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -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}
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -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}"
}
]