3

1.0.2 の修正用に新しいブランチを作成しました。終了したら、それらをマスターにマージしたかったので、次を使用しました。

git merge 'v1.0.2'

でも、「既に最新」と書いてあるのはおかしい。わかりました、それでいいので、ブランチを削除しようとします。

git branch -d 'v1.0.2'

しかし今、それは私に言いますerror: The branch 'v1.0.2' is not fully merged.

そもそも変更がマージされないのはなぜですか? どうにかしてそれらを強制的にマージする必要がありますか?

編集:

の出力git log --all --oneline --graph --decorate

* a783018 (HEAD, origin/master, master) Updated with 1.0.2 changes
* c208285 Updates
| * 655b0ea (v1.0.2) Submitted 1.0.2 to apple for review
| * 0d4f33d Updates
|/  
| * 02f7155 (origin/v1.1, v1.1) Additional fixes
| * 5a68697 Renaming classes and .m .h files with three letter prefixes to comply with Apple requirements
| * c90a76d Added pin pad as an option
| * 3dc6ceb Adding new security methods to lock app if the user chooses
| * 3bf1c88 Updates
|/  
* 71af916 Bug fixes
* 523672f (tag: v1.0.2) Final fixes before release
* 0269dab Bug fixes and added new methods to specifically layout details screens
* e1e7c08 Bug fixes
* 071c9cc (tag: v1.0.1) Last changes before 1.0.1 submission
* 8d56576 Bug fixes
* 9e86414 Major file restructure for easier git viewing and structure
* 4f14c9e Updated a few methods to no longer use the Utility object
* 1be42ea Moved some properties to the ZSSingleton rather than the Squiz Matrix singleton
* 1450e7d Updated a few code snippets
* 27c3ebb Updated methods for Metadata
* baf8a6c (tag: v1.0) Final fixes, submitted to apple
* d5ffb6c Addtional fixes
* aa7d123 Removed unused files
* a472a1d Removal of old Matrix library. Removal of ASIHTTPRequest!
* b533ac3 Added new attribute types
* 76c29ef Adding UIDatePicker for creating of Calendar assets
* 1fb09dc Added some fixes for ipad
* 0f93c82 Cleaning up of code, adding comments
* 27c7984 Cleaning up of code, adding comments
* d0d29bb Added ignore file
* 7911483 A file was deleted
* fdba63c First add of all files
4

2 に答える 2

2

それらをマージするには、他のブランチにいる必要があります。それで

git checkout master
git merge v1.0.2
git branch -d v1.0.2

マージに失敗したようです。すでに最新であると表示されても問題ありません。--allow-emptyこれをテストするためだけにマージに追加してみてください。マージ コマンドを発行するときは、マスターにいることを確認してください。

于 2013-01-16T19:08:26.133 に答える
1

これを試して:

git checkout master
git merge refs/heads/v1.0.2

どうやらあなたはブランチと名前のタグの両方を持ってv1.0.2いるようです、そしてgit merge v1.0.2あなたがブランチではなくタグとマージしたいと思うことを好むようです。上記の構文は、代わりにブランチをマージすることを明示しています。

于 2013-01-16T21:01:41.217 に答える