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
Top comments (9)
I only use
git statusright before a commit to make sure everything looks right.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 logto see when last changes happened andgit diffto compare against former commits.I mostly really on ide integration for git. I think
git initmight win overgit statusin my case. But I hardly use git at the command line.Conversely I rarely use
git initanymore.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 statusis 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 pushgit loggit checkout -bgit branch -a