Tony
Tony

Reputation: 9631

GIT not seeing updated folder name

Here's my current git layout:

git misc file.sh other file2.sh

If I change the folder name misc to misc2 it stays as misc on GIT how do I fix that? One thing to note is that the root git folder is not my git repro only the misc and other directories are.

Upvotes: 0

Views: 94

Answers (1)

rogue-one
rogue-one

Reputation: 11587

try git add -u on parent directory of the misc folder.

C02J8GV9DKQ1:test chlr$ git add -u
C02J8GV9DKQ1:test chlr$ git status
On branch master
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

    renamed:    misc/file.txt -> misc2/file.txt

Upvotes: 1

Related Questions