2012年3月22日 星期四

repo 常用指令


  1. 取得source
    $ repo init -u [address] -b [branch]
  2. 更換remote branch
    $ repo init -b [branch]
  3. 建立/跳轉local branch
    $ repo start [branch] [dir]    or $ repo start --all [branch]
  4. 清除未進track的檔案
    $ repo forall -c git clean -fdD
  5. 清除未commit 檔案
    $ repo forall -c git reset --hard HEAD
  6. 取得 repository status
    $ repo status
  7. 清除未commit 檔案
    $ repo forall -c git reset --hard HEAD

沒有留言: