Skip to content

Commit e7c17a7

Browse files
committed
Checkout a commit prior to a day ago.
1 parent 73e0350 commit e7c17a7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"eslint.enable": false
2+
"eslint.enable": false,
3+
"vsicons.presets.angular": false
34
}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
163163
* [Backup untracked files.](#backup-untracked-files)
164164
* [List all git aliases](#list-all-git-aliases)
165165
* [Show git status short](#show-git-status-short)
166+
* [Checkout a commit prior to a day ago](#checkout-a-commit-prior-to-a-day-ago)
166167

167168
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
168169
<!-- @doxie.inject end toc -->
@@ -1150,5 +1151,10 @@ git config -l | grep alias | cut -d '.' -f 2
11501151
git status --short --branch
11511152
```
11521153
1154+
## Checkout a commit prior to a day ago
1155+
```sh
1156+
git checkout master@{yesterday}
1157+
```
1158+
11531159
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
11541160
<!-- @doxie.inject end -->

0 commit comments

Comments
 (0)