mirror of
https://github.com/git-tips/tips
synced 2024-11-10 05:44:14 +00:00
Checkout a commit prior to a day ago.
This commit is contained in:
parent
40253a498c
commit
39d1012fc9
3 changed files with 13 additions and 2 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
"eslint.enable": false
|
||||
"eslint.enable": false,
|
||||
"vsicons.presets.angular": false
|
||||
}
|
|
@ -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)
|
||||
|
||||
<!-- Don’t 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}
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
|
|
@ -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}"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue