Useful Tips You Should Know About Git as a Programmer

This article is not about a series of important Git commands that all programmers know. Here are some tips based on experience.

Mohammad Yaser Ahmadi
5 min readDec 7, 2022

There are a lot of tutorials about git, but in real projects, developers usually just use the below command:

git init
git add .
git add -A
git commit -m "Message"
git commit -am "Message"
git pull
git push
git fetch
git merge
git branch
git checkout
git status
git log

I am not going to waste your time by explaining these commands in Git.

My approach in all articles that I wrote is:

Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.

Next, we will discuss the following?

1. Using Git Command Explorer Website

2. Create a branch for Each Issue

3. Why “git commit” command is important?

4. The best approach for writing messages for commits

5. Solving some bad situations in Git

1. Git Command Explorer

With Git Command Explorer you can find the right commands you need without digging…

--

--