使用tortoisegit修改日誌

http://stackoverflow.com/questions/17647936/how-do-i-edit-an-incorrect-commit-message-with-tortoisegitgit

 

If the commit is the head of current branch, that is easy.this

  1. Context menu -> Git Commit
  2. Tick "Amend Last Commit" checkbox
  3. Correct your commit message
  4. OK

If the commit is the head of other branch, switch to that branch first.日誌

  1. Context menu -> TortoiseGit -> Switch/Checkout
  2. Choose branch name
  3. OK
  4. Follow above 1-4 steps to amend commit message

If the commit is in the middle without any merge between head, you need to reset, amend and cherry-pickblog

  1. Context menu -> TortoiseGit -> Log
  2. Select the commit -> Context menu -> Reset
  3. Hard Reset (this will discard all work contained in commits above the selected commit as well as any un-committed changes in the working directory)
  4. OK
  5. Follow above 1-4 steps to amend commit message
  6. Select from head to one commit above it -> Context menu -> Cherry-pick
  7. Continue

 

分爲3種狀況:get

第一種狀況,若是須要修改的commit是當前分支的最新的一個commit,it

在版本庫中,右鍵菜單,提交io

在提交的界面,選擇Amend Last Commitast

而後根據須要修改日誌信息,包括commit message,日期,做者select

相關文章
相關標籤/搜索