Most used git commands

Ubrflgr
1 min readMay 24, 2020

--

The git commands I use most…I will keep adding to it…

The obvious:

git clone

git add file.c

git commit -m "new message"

git push

git status

Some arguments to the obvious:

git add -u

git add -p file.c

more stuff:

git checkout -p file.c

git checkout -b new_branch

git checkout a_branch

git log --oneline

git log -n 1 HEAD~3

git rebase -i origin/master

--

--