git init
git clone username@host:/path/to/repo
git rev-parse --is-inside-tree
git add filename or git add *
git commit -m "commit message"
git push origin master -- "if do not want to add changes to master branch then add changes to any other branch instead of master" -->>> if there is an issue while doing commit of username then do git config credential.username your_username
git log --graph --oneline --all
git checkout -b branch_name
git checkout branch_name
git branch -d branch_name
git merge branch_name
git config --global user.name "user_name" git config --global user.email "mail id"
git config user.name "user_name" git config user.email "mail id"
git diff git diff -staged
git reset [filename]
git reset [commit]
git reset –hard [commit]