mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Updated Custom Commands Compendium (markdown)
parent
3f1ee97390
commit
21c91c14fd
1 changed files with 13 additions and 0 deletions
|
@ -10,4 +10,17 @@ customCommands:
|
|||
command: "git push origin HEAD:refs/for/{{.CheckedOutBranch.Name}}"
|
||||
context: 'global'
|
||||
loadingText: 'pushing'
|
||||
```
|
||||
|
||||
## Pushing to a specific remote branch
|
||||
|
||||
```
|
||||
customCommands:
|
||||
- key: '<c-p>'
|
||||
context: 'global'
|
||||
loadingText: 'pushing'
|
||||
prompts:
|
||||
- type: 'input'
|
||||
title: 'which branch do you want to push to?'
|
||||
command: "git push origin {{index .PromptResponses 0}}"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue