Sublime Forum

How to run 2 git commands from a custom command

#1

I know the basics of extending - for instance with a Commit.sublime-menu file:

[
    {
        "caption": "Squash latest 2 commits",
        "command": "git",
        ...
    }
]

But if I want to run the following command line:

git reset --soft HEAD~10 && git commit -m "squashed commit"

How do I put this into JSON of the Commit.sublime-menu file?

Best
Daniel

0 Likes

#2

I think the work-around for the moment is to use git alias.

2 Likes

#3

Works for me!

0 Likes