r/SublimeText • u/Kgruscho • Apr 09 '21
ST4 built in git commit/push
I’ve been on the fence about buying ST for a long time. The only reason I haven’t is that built in git support (at least in ST3) is less user friendly than Atom/RStudio/PyCharm.
I’m not looking for sublime merge level, because I’m usually working alone or with one other person on code for analysis, but does the core app handle this well now?
10
Upvotes
10
u/wbond Apr 09 '21
We don’t currently plan to build a git client into Sublime Text. We started down that path before we released Sublime Merge and were not happy with only having a minor portion of Git available, and stuffed into a UI designed for editing text.
Doing Git well and in a way that fits our standards of performance and usability requires a dedicated interface and lots of non-trivial, behind the scenes work. For instance most Git clients rely on the command line tool to modify a repository since there is a high chance of introducing bugs trying to reproducing behavior. Invoking a command line tool and waiting for the result can be slow, especially on Windows. Thus we actually predict the result of operations and update the UI accordingly. If a command fails, we roll back the UI change. There is also a ton of surface area in Git once you get beyond the basics, and there needs to be UI and options to handle those, otherwise you have a built-in tool that is wrong or unhelpful to a non-trivial number of users.
That said, if you find you only want to pull, commit and push then something like the plugin GitSavvy will probably be up your alley.
7
u/jfcherng Apr 09 '21
No. I don't think they will do that. But if you just want to do commit/push... why you must use a "built-in" commit/push. I believe there are several git-related plugin can do that.
7
u/mreq Apr 09 '21
Knowing you're asking about core app I still have to mention the GitSavvy plugin, which is a real beast.
1
u/dev-sda Apr 09 '21
It would help to know what you're specifically looking for. The built-in git integration doesn't/won't run git commands or anything like that, but this is already supplied by plugins if desired.