Skip to content

Latest commit

 

History

History
49 lines (25 loc) · 828 Bytes

GitBasicCommands.md

File metadata and controls

49 lines (25 loc) · 828 Bytes

Commands

git status

git add filename

git commit -m " meaningful message"

git log

git log --help

git -n

git log --abbrev-commit

to see the difference between two different updates

git show

git diff

git reset filename ( to un unstage)

git remote add name SSH

git push

git push --set-upstream name_link master

git reset (unstage all the files)

git pull

git clone

git branch (to create branch)

git checkout (to switch between branches)

git push --set-upstream origin ( to let know github about new branch)

git checkout ( to switch to any commit points)

git switch -c ( to create a branch at some commit points which are not heads)

git branch -a ( to see the present working branch)

git branch --list