简体   繁体   中英

git mv rename all files and folders to capitalize first letter

I am renaming all my component names and folders. All of them start with a small letter. I am capitalizing them. The way I am currently doing is for the folder names I am writing

git mv folder test
git mv test Folder

as for the files directyl

git mv file File

I have a folder that contains around 50 folders and 200 sub-files. Can I automate this? I need to capitalize all them with git mv so that Github detects the changes. I use windows 10.

Of course there are ways to automate it. Since you're apparently a JavaScript dev, you could look into the Node.js APIs;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM