我想壓縮commiets到一個提交。這裏是例子。作爲一個治療c4101e(最新提交)和16d19f(3日提交)進行Squash提交到一個提交
git log --pretty=oneline
c4101e... removed conflict
04830f... T2345 - [Bug fix1]
16d19f... T2272 - [Bug fix2]
我的要求是, 他的代碼更改。像這樣
c4101e... removed conflict and T2272 - [Bug fix2]
04830f... T2345 - [Bug fix1]
在此先感謝。
不要使用!如果您在'''Bug fix1'''和''Bug fix2'''提交了相同的文件,則無法再次分離這些更改。 –