mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 15:26:15 -04:00
feat(memo): added memo base
This commit is contained in:
parent
a40aae44ce
commit
a5953a3c42
11 changed files with 864 additions and 157 deletions
57
tools/development/git-memo.vue
Normal file
57
tools/development/git-memo.vue
Normal file
|
@ -0,0 +1,57 @@
|
|||
<tool>
|
||||
title: 'Git memo'
|
||||
description: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus distinctio dolor dolorum eaque eligendi, facilis impedit laboriosam odit placeat.'
|
||||
icon: 'mdi-git'
|
||||
keywords: ['git', 'memo', 'cheat', 'sheet']
|
||||
path: '/git-memo'
|
||||
</tool>
|
||||
|
||||
<memo>
|
||||
## Configuration
|
||||
|
||||
### Set the global username
|
||||
|
||||
```shell
|
||||
git config --global user.name "[name]"
|
||||
```
|
||||
|
||||
### Set the global email
|
||||
|
||||
```shell
|
||||
git config --global user.email "[email]"
|
||||
```
|
||||
|
||||
## I've made a mistake
|
||||
|
||||
### Change last commit message
|
||||
```shell
|
||||
git commit --amend
|
||||
```
|
||||
|
||||
### Undo most recent commit and keep changes
|
||||
```shell
|
||||
git reset HEAD~1
|
||||
```
|
||||
|
||||
### Undo most recent commit and get rid of changes
|
||||
```shell
|
||||
git reset HEAD~1 --hard
|
||||
```
|
||||
|
||||
### Reset branch to remote state
|
||||
```shell
|
||||
git fetch origin
|
||||
git reset --hard origin/[branch-name]
|
||||
```
|
||||
|
||||
</memo>
|
||||
|
||||
<script lang="ts">
|
||||
import {Component} from 'nuxt-property-decorator'
|
||||
import Memo from '~/components/Memo.vue'
|
||||
|
||||
@Component
|
||||
export default class GitMemo extends Memo {
|
||||
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue