mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Updated Custom Commands Compendium (markdown)
parent
72138690fe
commit
b4950a9753
1 changed files with 21 additions and 0 deletions
|
@ -324,4 +324,25 @@ customCommands:
|
|||
context: 'commits'
|
||||
command: 'git commit --allow-empty -m "empty commit"'
|
||||
loadingText: 'Committing empty commit...'
|
||||
```
|
||||
|
||||
## Pull from specific remote
|
||||
|
||||
```yml
|
||||
- key: '<c-p>'
|
||||
description: "Pull from a specific remote repository"
|
||||
context: 'files'
|
||||
loadingText: 'Pulling ...'
|
||||
command: git pull {{ .Form.Remote }} {{ .Form.RemoteBranch }}
|
||||
prompts:
|
||||
- type: 'input'
|
||||
key: 'Remote'
|
||||
title: "Remote:"
|
||||
suggestions:
|
||||
preset: 'remotes'
|
||||
- type: 'input'
|
||||
key: 'RemoteBranch'
|
||||
title: "Remote branch:"
|
||||
suggestions:
|
||||
command: "git branch --remote --list '{{.Form.Remote}}/*' --format='%(refname:short)' | sed 's/{{.Form.Remote}}\\///'"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue