{"id":128,"date":"2021-12-07T11:48:26","date_gmt":"2021-12-07T03:48:26","guid":{"rendered":"https:\/\/shiblenoman.com\/blog\/?p=128"},"modified":"2021-12-07T11:50:11","modified_gmt":"2021-12-07T03:50:11","slug":"folder-rename-in-git","status":"publish","type":"post","link":"https:\/\/aabirtech.com\/shiblenomanblog\/2021\/12\/07\/folder-rename-in-git\/","title":{"rendered":"Folder rename in Git"},"content":{"rendered":"\n<p>Git can&#8217;t detect directory name change. For example rename an existing folder to &#8220;Dashboard&#8221; from &#8220;DashBoard&#8221;. Even if we rename the folder name from the directory but git will still not detect the change. Here is the git command to make it work for rename <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git mv oldname newname <\/code><\/pre>\n\n\n\n<p>For the above example it will not work since it&#8217;s case sensitive, to rename a case sensitive name, follow the below commands <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git mv DashBoard temp\ngit mv temp Dashboard<\/code><\/pre>\n\n\n\n<p>We need to rename to a temporary folder and then rename to intendent folder name. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><em>Happy Coding <\/em>\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git can&#8217;t detect directory name change. For example rename an existing folder to &#8220;Dashboard&#8221; from &#8220;DashBoard&#8221;. Even if we rename the folder name from the directory but git will still not detect the change. Here is the git command to make it work for rename For the above example it will not work since it&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,21],"tags":[],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-git","category-keepremaindingme"],"acf":[],"_links":{"self":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":3,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts\/128\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}