Git 101 Configured git git config --global user.name “Your Name Comes Here” git config --global user.email you@yourdomain.example.com General usage git <subcommand> Clone git clone https://github.com/DhrutiLohar/CS.git Check History git log list branch git branch Create new branch git branch <branchname> Delete branch git branch -D branchname Pull changes from remote/orgin git pull <source> <branchname> e.g. git pull origin master git pull origin testbranch Pull changes from remote/orgin git pull <source> <branchname> e.g. git pull origin master git pull origin testbranch Pull and rebase changes from remote/orgin git pull --rebase <source> <branchname> e.g. git pull --rebase origin master git pull --rebase origin testbranch Push changes to remote git push <location> <branch> e.g. git push origin master Check status of file git status Add file for commit git add <filename> Commit changes locally git commit -m "Some message" Check diff git diff Check commit details git show <commitId> Revert changes git revert <commitid>