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?
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?
For further actions, you may consider blocking this person and/or reporting abuse
Rez Moss -
Saumya Shah -
arjun -
Hrish B -
Top comments (9)
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 andgit diff
to compare against former commits.I only use
git status
right before a commit to make sure everything looks right.I mostly really on ide integration for git. I think
git init
might win overgit status
in my case. But I hardly use git at the command line.Conversely I rarely use
git init
anymore.What IDE do you use?
IntelliJ, mostly for Java. But also with Rust, Clojure, web. Haven't found a good reason to use another IDE yet.
IntelliJ is a good one. I'm in the VSCode camp but specifically because I'm not doing any Java programming these days.
all the time, yes!
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.
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