Common Git Command for Beginner

visualization for branching in git — Photo by Alexander Popov on Unsplash

What is Git

Basic Git Command

git <command> <options>

Git Clone

git clone git://git.kernel.org/pub/scm/.../linux.git my-folder

Git Add

git add .
git add -p

Git Checkout

git checkout <branch-name>
git checkout -b your-branch-name origin

Git Commit

git commit <options>
git commit -m 'your commit message'

Git Push

git push <options>
git push -u origin branch-name
git push -u

Writing is a part of my hobby. I am software engineer at ipricegroup.com.