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:
parent
40253a498c
commit
39d1012fc9
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 -->
|
||||
|
Loading…
Reference in New Issue
Block a user