Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a source-control system that allows tracking of file name changes?

So, I've been living with my cvs repositories for some time. Though there is a thing I miss - if i rename a file that is already in repository, I need to delete the one with old name from there and add the new one. Hence, I loose all my change-history. And sometimes there's a need to rename a file in alredy existing project.

From what I saw, cvs/svn can't handle something like this, or am I wrong? If not, what other source control system would you recommend, that allows the renaming of files?

like image 862
kender Avatar asked Oct 02 '08 15:10

kender


1 Answers

Subversion can do this, but you have to do it with

svn move <oldfile> <newfile>

Edit: And in this decade, we do git mv <oldfile> <newfile>, or just use mv and git usually figures it out on its own.

like image 178
Matthias Winkelmann Avatar answered Oct 21 '22 05:10

Matthias Winkelmann