DEV Community

Amara Graham
Amara Graham

Posted on

Do you use git status?

What is your most used git command and why is it git status?

Or if you aren't using git status, how are you surviving?

Top comments (9)

Collapse
 
jankapunkt profile image
Jan Küster • Edited

Git status always before any other changing command to see which branch I am on, if there are unstaged files or unwanted files staged (that should be ignored).

However also important git log to see when last changes happened and git diff to compare against former commits.

Collapse
 
michaeljolley profile image
Michael Jolley

I only use git status right before a commit to make sure everything looks right.

Collapse
 
gklijs profile image
Gerard Klijs

I mostly really on ide integration for git. I think git init might win over git status in my case. But I hardly use git at the command line.

Collapse
 
missamarakay profile image
Amara Graham

Conversely I rarely use git init anymore.

What IDE do you use?

Collapse
 
gklijs profile image
Gerard Klijs

IntelliJ, mostly for Java. But also with Rust, Clojure, web. Haven't found a good reason to use another IDE yet.

Thread Thread
 
missamarakay profile image
Amara Graham

IntelliJ is a good one. I'm in the VSCode camp but specifically because I'm not doing any Java programming these days.

Collapse
 
andypiper profile image
Andy Piper

all the time, yes!

Collapse
 
moopet profile image
Ben Sinclair

A lot of people use git in the background, so their prompt or tmux statusbar or whatever displays an oveview of their status. I don't know how that affects my answer.

Collapse
 
tythos profile image
Brian Kirkpatrick

Yes, I use git status. It probably lives halfway down my list of most-commonly-used-git-commands. But since I'm usually working in VS Code, I'm just as likely (maybe moreso) to first check the in-IDE git status highlighter marks in my active project (both in the file browser and the windows themselves). git status is more likely to be used if I'm just coming back to a project with intention to branch, unable to remember if I had tracked whatever changes I had made in my previous session.

Other git commands used more frequently:

git add -A & git commit -m "{{message}}" & git push

git log

git checkout -b

git branch -a