Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rename a directory in git

#if case sensitive file renaming problem, run this in your terminal
git config core.ignorecase false

#move file/dir
git mv dir1 dir2 OR git mv filename1 filename2

#if above approach doesn't work, do this
git mv dir1 tmp
git mv tmp dir2
 
PREVIOUS NEXT
Tagged: #rename #directory #git
ADD COMMENT
Topic
Name
5+4 =