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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -