This commit is contained in:
Tobias 2025-04-13 04:11:00 +02:00 committed by GitHub
commit 895ad8372a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 1 deletions

View file

@ -35,6 +35,26 @@ Add new modifications to the last commit
git commit --amend --no-edit git commit --amend --no-edit
``` ```
## Branches
Lists all local branches in your repository (use -a for local and remote branches)
```shell
git branch
```
Switch to an existing branch
```shell
git switch [branch name]
```
Create a new branch
```shell
git checkout -b [branch name]
```
## Ive made a mistake ## Ive made a mistake
Change last commit message Change last commit message

View file

@ -6,7 +6,7 @@ export const tool = defineTool({
name: translate('tools.git-memo.title'), name: translate('tools.git-memo.title'),
path: '/git-memo', path: '/git-memo',
description: translate('tools.git-memo.description'), description: translate('tools.git-memo.description'),
keywords: ['git', 'push', 'force', 'pull', 'commit', 'amend', 'rebase', 'merge', 'reset', 'soft', 'hard', 'lease'], keywords: ['git', 'push', 'force', 'pull', 'commit', 'branch', 'switch', 'checkout', 'amend', 'rebase', 'merge', 'reset', 'soft', 'hard', 'lease'],
component: () => import('./git-memo.vue'), component: () => import('./git-memo.vue'),
icon: BrandGit, icon: BrandGit,
}); });