gitdemo git clean -nd git clean -fd git log git log --graph gitk --all git checkout "first four letters of the commit id" git remote -v , show all branches and details git branch "name", to create a new branch git branch -a git checkout "branch name", to switch in between branches