0
* 6a2da68        (styleChange) merge fix in setting
* dac420f        added libs
* 622021c        merging changes
| * 18847ab      (production/master, master) added couple of cdns
| * 8f02c19      minified css files
| * 276649a      (HEAD, testminify) added libs
| * f4b9533      fixed fb
|/  
* 2b4b490        prod ready
* 685a99c        removed dj static from settings file
* 1f012bc        added mailing support
* eb69d26        modified wsgi and static files
* bbd5c76        settings
* 39b229b        deleted some files
* 7e8ecaa        Initial Commit

ご覧のとおり、私の頭の上にある 276649a ( libsコミットが追加されました) 今のところ、頭があるコミットの前にすべてのコミットを取り除きたいので、最終的に私の git グラフは次のようになります -

* 276649a        (HEAD, testminify) added libs
* f4b9533        fixed fb
* 2b4b490        prod ready
* 685a99c        removed dj static from settings file
* 1f012bc        added mailing support
* eb69d26        modified wsgi and static files
* bbd5c76        settings
* 39b229b        deleted some files
* 7e8ecaa        Initial Commit

私のgitブランチツリーをきれいにする方法はありますか? したがって、基本的には、冗長な将来のブランチといくつかのコミットも取り除きたいと考えています。

ありがとう!

4

2 に答える 2

0

表示したくないコミットが別のブランチにある場合、それらのブランチを削除するだけで十分です。

git branch -D styleChange
git branch -D master
于 2013-07-19T18:10:29.880 に答える