2013-04-01 156 views

回答

1

如果您還沒有發佈回購,可以使用git filter-branch。請記住,從技術上講,這會創建新的存儲庫,與舊存儲庫無關(因此「如果您還沒有發佈它」規則)。

git filter-branch --commit-filter ' 
    if [ "$GIT_COMMIT" = "full ID/SHA of the commit you want to skip here" ]; 
    then 
      skip_commit "[email protected]"; 
    else 
      git commit-tree "[email protected]"; 
    fi' HEAD 
相關問題