我使用Rails进行开发。我有一个名为cpc_admin_controller.rb的控制器--完整路径是app/controllers/cpc_admin_controller.rb,助手名为admin_helper.rb --完整路径是app/helpers/admin_helper.rb。然后,我将一个方法从admin_helper.rb移到cpc_admin_controller.rb,并保存,使用git提交。
但是git显示的消息如下
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# renamed: app/helpers/admin_helper.rb -> app/controllers/cpc_admin_controller.rb
# modified: app/helpers/admin_helper.rb我认为它应该显示两个像这样修改的,而不是重命名的
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: app/controllers/cpc_admin_controller.rb
# modified: app/helpers/admin_helper.rb有人能帮我,告诉我为什么?
发布于 2014-10-09 08:10:21
https://stackoverflow.com/questions/26273245
复制相似问题