It’s Tech Thursday again and my question for you this week is: What’s your most used Git command? And why?
You can find a handy list of all commands here.
Can’t wait to read your responses!
Anna
It’s Tech Thursday again and my question for you this week is: What’s your most used Git command? And why?
You can find a handy list of all commands here.
Can’t wait to read your responses!
Anna
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
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.
Pretty sure it has to be git add
since almost every change has one.
git status
I’ll always make sure that I staged my stuff correctly before creating a commit.
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.
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.
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.
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.
git blame
Oh it’s me