I wanted to rename a file called test.py to main.py. test.py is under subversion version control. I renamed the file directly, but realized later that I should have used svn rename instead.
Now svn status shows the following:
? main.py
! test.py
Any way to fix this ?
Rename it back, then use svn rename?
If you just renamed it but don't change it use: svn revert and then svn rename. In other case do svn delete main.py and svn add test.py
P.S. The advantage of the svn rename is that file history will be saved. When you do delete and the add the file history will be lost.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With