Member-only story

Shortcut Git CLI

Tom Smykowski
2 min readMay 12, 2022

--

As you may know from my previous essay “Two essential tricks of 10x Developer” I always strive to improve tools I use. You may also know that I wrote JIRA and Shortcut scripts to make it easier to copy branch and ticket name.

Just to recall what such script does, it shows buttons in JIRA and Shortcut UI you can click to automatically copy branch name ready to create a branch from, for example bash terminal in VSCode.

It takes care about removing useless stuff from the ticket name, combines the ticket ID and ticket name, with ticket type for a nicely formatted branch name.

It works excellent.

Especially with my bash script that takes care of:

  1. Pulling staging
  2. Creating a branch
  3. Linking it with remote repository

And only switching to the branch if it is already there.

But still I had to copy the branch name. So I have started to wonder:

Why I can not choose a ticket I want to work on in the terminal?

And it occurred I found the answer to the question. Because no one wrote a script for this. What I wanted to achieve is to have a list of all “in progress” tickets I have in Shortcut assigned to me. And being able to choose a ticket I want to work on. The script should then take this ticket, prepare a name of a branch, and create it if necessary, and switch to it.

--

--

Tom Smykowski
Tom Smykowski

Written by Tom Smykowski

🚀 Senior/Lead Frontend Engineer | Angular · Vue.js · React | Design Systems, UI/UX | Looking for a new project! 📩 contact@tomasz-smykowski.com

No responses yet