From b4950a97534827555733b7a24f221ee41b7df327 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 13 Jul 2023 19:36:59 +1000 Subject: [PATCH] Updated Custom Commands Compendium (markdown) --- Custom-Commands-Compendium.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Custom-Commands-Compendium.md b/Custom-Commands-Compendium.md index 0397f8c..9485653 100644 --- a/Custom-Commands-Compendium.md +++ b/Custom-Commands-Compendium.md @@ -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: '' + 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}}\\///'" ``` \ No newline at end of file