Sublime Forum

Merge: is there a way to get the current branch name in the clipboard?

#1

For working together and our CI I often need the branch name I’m working on. Is there a way to get the current branch name copied into my clipboard?

0 Likes

#2

One way to do that would be to right click on the commit in the tree that the branch is currently sitting on. In the context menu that pops up, you can select the branch name, and inside of the menu there’s an entry for copying it to the clipboard. For example master > Copy 'master'.

The same is also available in the “three dots” menu in the commit view when the currently selected commit has one or more branches.

0 Likes

#3

Thanks! They are all a bit far away from the main view.

I do see the three-dots system though. Maybe it could be a nice addition in the three-dots button in the top bar.

0 Likes

#4

I think (not sure on available variables) you can add that menu item to the Action menu yourself.

1 Like