Changing name of folder in Rails - Git won't let me add to commit
github, ruby-on-rails
Solution
In general when changing file or directory names, you'll want to use the following:
git mv oldfile newfile
This will tell git to actually add the changes so that you can commit them. So, try manually changing it back with
mv chips Chips
and then run
git mv Chips chips
Problem
Referencing the screenshot above, I changed the name of the lowest-level folder in the tree. For example, I changed "Chips" to "chips." Oddly, Git refuses to recognize the following command when I try to add it to the commit: ``` git add public/images/chips/ ``` The only way I can get it to add the file to the commit is by adding an actual file in the subfolder. Any ideas how to handle?