Possible Duplicate:
Is it possible to move/rename files in git and maintain their history?
I am a previous subversion user, not sure how git could help me in following situation.
I have a git repository where my project was contained having multiple dirs, I've been making several commits over this structure
Now I need to make structure changes, so that I move all folders/files at root to a new folder, and I still want to keep commit history of files.
so for example in my repo I currently have a structure like this
src
res
xml
file.txt
.gitignore
I want all of them to be moved in a folder called common, so that I have following structure at the root of repo
common
.gitignore
Is it possible , if so how ?
Thank you