Home » Git

Git stash


you can save your current working dir into a temp storage. Do this: # save working dir (all uncommitted changes) in a temp storage git stash save after you do this, the working tree will be clean. to…

Read More »

Git branching


How to list branches? git branch #show all local branches. git branch -r #show all remote branches. git branch -a #show all local and remote branches. git show-branch #show branches and their commits. How to find out which…

Read More »

Git basics


Git Basics Set Up Name and Email Info First, you need to setup a default name and email. Else, git won’t let you commit. Everytime you commit, your user name and email is in part of the commit…

Read More »