Git – Move Files

Git Move Files Use git mv command to move files and directories in current git repository. You can see that the same command is used to rename files as well. Syntax git mv [FILENAME] [LOCATION TO MOVE] Example For example, you have multiple files in your current project. In my case, the files are as followings. [email protected]:/app$ ls -l total 164 drwxr-xr-x 2 root root 4096 Dec 28 03:29 Documents -rw-r–r– 1 root root 35259 Dec 28 03:28 firstfile.txt -rw-r—– 1 root root 121185 Dec 28 03:59 general.log -rw-r–r– 1 root…

Read More