顯示具有 fetch 標籤的文章。 顯示所有文章
顯示具有 fetch 標籤的文章。 顯示所有文章

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 

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