Sublime Forum

Support for git status command

#1

Is there support for running git status in Sublime Merge or in Sublime Text?

If I’m in a bad state detached head, or branch is ahead of 'origin/master', etc. there’s no graphical indication in either Text or Merge. Running a pull or fetch command in those states fails and Merge will report the failures but the GUI doesn’t update to show that running commands has/will fail.

If status is a supported feature I would love to have access to it. If not I would like to request that it be considered.

0 Likes

#2

J https://www.sublimemerge.com/docs/command_palette

Check out the User Entries section

0 Likes

#3

See also https://github.com/sublimehq/sublime_merge/issues/342

0 Likes

#4

You can see the status in the top bar.

Checked-out branch:

Checked-out branch behind remote:

Detached HEAD:

2 Likes

#5

Thank you, TheSecEng, srbs, bschaaf. All three of your replies are helpful to me now that I’m back to using git again. I’ve read through a lot of docs and comments today and now I:

  • have a way to see if I’m in detached HEAD state from within GUI, up front and center
  • have a way to run custom commands like status if I need to
  • know I’m not alone in finding detached HEAD state to navigate, even with the benefits of a GUI

In particular, bschaaf, your comments on https://forum.sublimetext.com/t/feature-request-raise-a-warning-before-allowing-the-user-to-commit-when-in-a-headless-state/51994 were helpful to me as a user:

Sublime Merge doesn’t exist to simplify git or make it easy for someone unfamiliar with git to learn it

this admittedly made me sad, because I really want a tool to simplify git for me, besides the ubiquitously recommended git push --force

git being git you’re not going to get away with not teaching/learning how it works before being able to use it

and then this made me feel better.

After recognizing that Sublime Merge isn’t designed to be easy because git can’t be easy I don’t feel as bad for not finding UI help, or simple git help in general. Knowing that there isn’t an easy out will hopefully make it easier for me to buckle down and learn git properly.

2 Likes

#6

If you go to the Git website, they have the book ProGit, which is downloadable for free as a PDF or E-book. I have a copy, which I peruse on occasion. Much of it is incomprehensible to me, which is why I don’t use Git.:smiley:

2 Likes