Git – Rename Files

Git Rename Files Use git mv command to rename files and directories in current git repository. You can see that the same command is used to move files as well. The difference between both operations is that if you changed the filename only and destination is the same directory then it called rename. Syntax git mv [FILENAME] [NEW FILENAME] 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…

Read More