I'm using git-bash-1.8.4
Git structure: Master -folder1/file1,file2,file3.. -folder2/ -folder3/
so I want to copy file1 to folder2 preserving history.
I tried
git mv file1 folder2 but it doesn't work. please suggest.
git mv file1 folder2
does not work because file1 and folder2 are under different directories. Try following command from the root of repository.
git mv folder1/file1 folder2
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