【发布时间】:2013-01-04 13:19:27
【问题描述】:
我检查了“production_branch”,然后合并了“master_branch for_production_branch”,但存在大量冲突。 'production_branch' 已部署到生产环境。但冲突需要更有经验的眼睛。我需要在生产分支“production_branch”上获得一个关键补丁(我将手动完成),以便进行部署。
git co 'production_branch' # =>
lib/tasks/foobar.rake: needs merge
vendor/plugins/acts_as_syncable/lib/active_record/whatever.rb: needs merge
error: you need to resolve your current index first
和
git co 'master_branch for_production_branch'
lib/tasks/foobar.rake: needs merge
vendor/plugins/acts_as_syncable/lib/active_record/whatever.rb: needs merge
error: you need to resolve your current index first
如何返回工作目录中的“production_branch”,以便部署一个简单的关键修复。
【问题讨论】:
标签: git git-revert