Sublime Forum

[Feature Request] Allow to call Git Aliases

#1

Hi,

I’m looking for a feature which allow me to call Git Aliases in Sublime-Merge like this:

alias.pushall=!git remote | xargs -L1 git push --all

Is this function exists and I’m not aware of?

Thanks

0 Likes

Default.sublime-commands not loading
#2

Maybe the universal git command can help you out?

Example

    {
        "caption": "Stash, Include Untracked Files\tgit stash --include-untracked",
        "command": "git",
        "args": { "argv": ["stash", "--include-untracked"], }
    },
3 Likes

#3

Ok, where can I put these settings? :confused:

0 Likes

#4

It is a command definition, which can be used in *.sublime-command, *.sublime-keymap, *.sublime-mousemap or *.sublime-menu files to create new commands.

Placing the snippet above into the Packages/User/Default.sublime-commands file you’ll get a new entry in the command palette for instance.

1 Like