所以我做了一件坏事.
在进行一系列更改的过程中的某个地方,我意识到一个非预期的文件已经陷入了一两次提交.因为直到后来才意识到这一点,包含该文件的提交现在已被推送到远程.我想要并且需要提交,我只是想从它们中删除这个特定的文件.
当然,我需要做的是进入我树的每个角落(本地和远程)并删除该文件.我已经尝试使用了一些东西filter-branch和filter-tree,但是当我试图推动修改遭到拒绝.
我有什么选择?我究竟做错了什么?
谢谢.
UPDATE
在max的要求下,这是我尝试推送时得到的消息:
$ git push origin develop
To git@codaset.com:robwilkerson/cakephp-polyclip-plugin.git
! [rejected] develop -> develop (non-fast-forward)
error: failed to push some refs to 'git@codaset.com:robwilkerson/cakephp-polyclip-plugin.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2148 次 |
| 最近记录: |