2013年1月3日 星期四

常用git commands


顯示remote branch的內容
$ git remote -v show <REMOTE>

pull remote branch
$ git checkoutout --track REMOTE/BRANCH

顯示往前幾個的log
ex. $ git show   HEAD~1
ex. $ git show CHANGE~COUNT

顯示remote branch
$ git branch -r 

visually顯示log
$ git log --graph --oneline --all --decorate

產生一個branch
$ git branch NAME CHANGELIST

設定git config 
$ git config --global alias.lga "log --graph --oneline --all --decorate" 

繼續rebase merge
$ git rebase --continue

沒有留言:

張貼留言