学以致用

focus on Python , C++, and some interest in Go and R

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年1月5日

摘要: 怎样更改Git的commit?在使用git的时候,避免不了要更改某一个或某一些commit,这个时候就需要使用git rebase命令了。假如说当前repository中共有两个commit, 05034eefd8670787d0f2cf6a67a2798b31c676b5(Initial commit), c9e03a2805b3b7c101b77ecaf5ac4f9a96759f64(just for test)。由于种种原因想同时修改这两个commit的信息,比如说author信息。该怎么做呢?(1)更改根commit的author信息 # checkout root commit gi 阅读全文
posted @ 2013-01-05 11:23 Jerry.Kwan 阅读(738) 评论(0) 推荐(0)