2015年3月2日 星期一

git 基本指令

webber0928
整理 local breach

$ git remote prune origin



取得遠端分支

$ git fetch origin hotfix/4319_2015_wb_testError : hotfix/4319_2015_wb_testError
$ git checkout hotfix/4319_2015_wb_testError

連接

$ git branch -u origin/hotfix/4319_2015_wb_testError


對上一個commit重新寫入

$ git commit --amend

取消剛剛的 commit,回到再上一次 commit的 乾淨狀態
$ git reset HEAD^ --hard 

By webber0928

一個小菜鳥工程師,對籃球還有夢想的男孩。

0 意見:

張貼留言

Coprights @ 2016, Blogger Templates Designed By Templateism | Distributed By Gooyaabi Templates