Tech Thursday: Most Used Git Command

It’s Tech Thursday again and my question for you this week is: What’s your most used Git command? And why?

giphy

You can find a handy list of all commands here.

Can’t wait to read your responses!
Anna

3 Likes

Since I’m newer to learning Git my most used commands are git status and git branch to make sure my changes are in place and to check I’m on the right branch :joy:

3 Likes

Probably git status, with git diff close behind. Building a commit is usually a cycle of those with file-by-file git add in between. And a status check is usually the first thing when I get back to whatever after a break. :smile_cat:

2 Likes

git clone
:robot:

2 Likes

Pretty sure it has to be git add since almost every change has one.

2 Likes
  1. git status

    I’ll always make sure that I staged my stuff correctly before creating a commit.

  2. git pull --verbose --progress

    I have 3 devices in different place (office, dormitory & home). All my work will be synced with github.com or
    gitcode.net. I should keep my replications up-to-date before I start working at morning.

  3. git add

    Most of the time, I’ll create a commit if I make an important modification of the repository. So each time I can simply adding all the stuff in the repository in one commit.

  4. git push --verbose --progress --all

After finishing all the works, don’t forget to save & upload my work to Cloud VCS Service. If there’s something
wrong with my code, I can easily fix it from another device.

3 Likes

My most used command is definitely git status, closely followed by git add and git commit. Fourth place probably goes to git push, git fetch and git pull are likely tied for fifth place with the branch, checkout and tag commands trailing far behind.

Although I mostly use the command line for git I don’t use git diff much because I prefer to use a GUI app like GitHub Desktop for diffs.

2 Likes

git blame

Oh it’s me

3 Likes