Git hint

#StandWithUkraine
Today, 4th December 2022, Ukraine is still bravely fighting for democratic values, human rights and peace in whole world. Russians ruthlessly kill all civilians in Ukraine including childs and destroy their cities. We are uniting against Putinโ€™s invasion and violence, in support of the people in Ukraine. You can help by donating to Ukrainian's army.

Stage file for commit:

git add .

Show status of files:

git status

Show what will be staged:

git diff

Show what was staged and will be commited:

git diff --cached

Unstage staged file or folder (don't touch content of file):

get reset HEAD file

Remove file or folder from git contron (don't touch content of file)

git rm -r --cached file

#git
0
Ivan Borshchov profile picture
Jan 04, 2022
by Ivan Borshchov
Did it help you?
Yes !
No

Best related