how to move files from one folder to another folder in the same git repository preserving history -


this question has answer here:

i'm using git-bash-1.8.4

git structure: master -folder1/file1,file2,file3.. -folder2/ -folder3/

so want copy file1 folder2 preserving history.

i tried

git mv file1 folder2 doesn't work. please suggest.

git mv file1 folder2 

does not work because file1 , folder2 under different directories. try following command root of repository.

git mv folder1/file1 folder2 

Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -