Git常用指令

* 查看本地端 brach
git branch

* 查看Remote brach
git branch -r

* 同時查看本地端及Remote brach
git branch -a

* rescan file for update ignore
git rm -r --cached .
git add .

* 建立空的branch
git checkout --orphan <branch-name> 
git rm --cached -r .                #clean all file


留言