Ability to run custom shell scripts
Add custom commands to the toolbar and context-menus to quickly run custom shell scripts.
I have some shell-scripts in my home-directory that I run when my working-directory is my git-repo and these scripts automate some common git tasks, such as deleting branches that have been merged into production branches, etc.
Letting me run shell scripts and other shell commands directly from the GitKraken toolbar without needing to fire-up a terminal would save me a lot of time and also means I can add support for simple tasks to GitKraken myself.
Ideally we'd be also be able to add commands to all context-menus too (such as a branch or stash's context-menu) and GitKraken would pass the name of the object/branch/stash/ref as a command-line argument into the script.
Comments: 13
-
22 Oct, '21
Adam Manwaring MergedAs a user, I'd like to be able to create and run macros or scripts to make my life easier and to remember complex but seldom used processes.
For example, suppose I sometimes need to move a tag so that it points to a different commit. I would define a script that does the following:
git tag -d <tagname>
git push origin :refs/tags/<tagname>
git tag <tagname> <commitId>
git push origin <tagname>
When I run the script it would ask for <tagname> and <commitId> and execute.
If there were predefined variables the script could be made available with the drag and drop context menu or the right-click context menu. Predefined variable could be stuff like: <srcTag>, <destTag>, <srcBranch>, <destBranch>, <srcCommit>, <destCommit>, <srcStash>, etc. The above example could be written as follows:
git tag -d <srcTag>
git push origin :refs/tags/<srcTag>
git tag <srcTag> <destCommit>
git push origin <srcTag>
Then I could run the script simply by dragging an existing tag onto a commit -
16 Feb, '22
Axel Heider MergedI seems some feature request could be automated with such macro, for example https://feedback.gitkraken.com/suggestions/280383
-
16 Feb, '22
Axel HeiderSeem this is similar to https://feedback.gitkraken.com/suggestions/226670/add-the-ability-addrun-custom-macrosscripts
-
16 Feb, '22
Axel Heider MergedSeems this is similar to https://feedback.gitkraken.com/suggestions/194874/ability-to-run-custom-shell-scripts
-
21 Feb, '22
Jonathan Admin"Add the ability add/run custom macros/scripts" (suggested by Adam Manwaring on 2021-10-22), including upvotes (2) and comments (1), was merged into this suggestion.
-
15 Jul, '22
Duarte FariaSame here, my company uses flavio to manage repos and i'd like to be able to set gitkraken to at least allow me to run a custom clone command
-
11 Oct, '22
Lyndon Gingerich MergedBash scripting isn't hard. Why not add capability of adding a few buttons to execute our own commonly-used scripts with one click each? If users report which are popular, you would even get free market research for GitKraken features.
-
12 Oct, '22
Joey Kelroy Admin"Custom buttons" (suggested by Lyndon Gingerich on 2022-10-11), including upvotes (1) and comments (0), was merged into this suggestion.
-
17 Feb, '23
Axel Heiderhttps://feedback.gitkraken.com/suggestions/197719/allow-empty-commit-be-created seems another feature request that could be addressed easily with that feature, so there is no string need to implement this in the GitKraken core.
-
10 May, '23
Joey Kelroy Admin"Init git with custom script" (suggested by Rastislav on 2023-05-07), including upvotes (1) and comments (0), was merged into this suggestion.
-
13 May, '23
Alexey SiginurThere are so many features that are missing in GitKraken. Let us at least add our custom scripts, that could be super useful.
-
07 Jul, '23
Joey Kelroy Admin"feature to have button shortcuts that run terminal commands" (suggested by john on 2023-07-03), including upvotes (1) and comments (0), was merged into this suggestion.
-
22 Dec, '23
José DE SOUSABefore I used Fork on Windows, I moved to Linux and therefore moved to GitKraken. In my company we have lots of custom commands in our workflow and Fork handles it very well. This is really missing on GitKraken.