What to do with a svn-commit.tmp
Every time I do a status on svn using terminal I g开发者_如何学Cet this file. ? svn-commit.8.tmp
I know its a failed commit comment file but how do I get rid of it. I don't know if I should rm it or how to deal with it.
Removing it is just fine; it's unversioned and all of the text is stored in the SVN log anyways. If your commit fails, you can reuse it by calling:
svn commit -F svn-commit.tmp
subversion will then automatically remove your svn-commit.tmp
file.
Just rm
it.
The reason it's left behind when a commit fails is so that you don't lose the (potentially long) commit message that you just wrote -- you can open the file in a text editor and paste the text as the commit message of your next commit when you fix the problem that prevented your first commit.
Remove it using svn rm --force yourfilename
better than just rm
because rm
doesn't make it to version tracking
精彩评论