Can't commit a delete using git-svn: Your file or directory is probably out of date

試著忘記壹切 提交于 2019-12-21 19:42:22

问题


I've been looking over this post, but still can't figure out how to solve my particular issue.

I'm using git-svn locally against a svn repository. I usually do the following:

  1. git svn rebase (to get the latest from the repo).
  2. git checkout local-dev
  3. git merge master (to merge this into my local branch)
  4. make changes, committing locally as I go
  5. git checkout master
  6. git merge local-dev
  7. git svn dcommit (to sent it all back upstream)

Usually works fine, until I tried to commit my latest batch from the merged master back to the repository:

$ git svn dcommit

Committing to http://mysvnrepository ... D PROJECT/Content/js/dp/jquery-1.3.2.js

Merge conflict during commit: Your file or directory 'PROJECT/Content/js/dp' is probably out-of-date: resource out of date; try updating at C:\Program Files\Git/ libexec/git-core/git-svn line 508

I deleted this "/dp" folder sometime in my operations and git appeared to handle everything fine, but now it won't send to to svn.

Any suggestions on how to fix this?


回答1:


I don't know why you are getting the conflict, but my usual tactic in this situation is to do svn rebase again.




回答2:


Someone was kind enough to help me in an irc channel. I ended up having to do my "git merge local-dev --squash" and that managed to help it out.



来源:https://stackoverflow.com/questions/1251895/cant-commit-a-delete-using-git-svn-your-file-or-directory-is-probably-out-of-d

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!