Ubuntu git svn还原本地提交的删除

Ubuntu git svn还原本地提交的删除,ubuntu,git-svn,Ubuntu,Git Svn,git svn现在快把我逼疯了 我跑: git rm <file> git commit git-rm git提交 该文件仍在svn repo中,但我不知道如何将其签出,以使其处于修订控制中。我想在svn中做同样的事情: rm <file> svn update rm svn更新 感谢您使用git commit在本地提交删除操作。您应该运行git svn dcommit然后,它类似于git push如果您没有使用git svn dcommit将提交推送到Subve

git svn现在快把我逼疯了

我跑:

git rm <file>
git commit
git-rm
git提交
该文件仍在svn repo中,但我不知道如何将其签出,以使其处于修订控制中。我想在svn中做同样的事情:

rm <file>
svn update
rm
svn更新

感谢您

使用git commit在本地提交删除操作。您应该运行
git svn dcommit
然后,它类似于
git push
如果您没有使用
git svn dcommit
将提交推送到Subversion存储库,那么可以使用
git reset--hard HEAD^
退出单个git提交