k1eran
k1eran

Reputation: 4970

Git workspace on OSX (case insensitive but preserving) have pulled case-related changes

My colleague has pushed changes where a java package (directory) like /fooBar/ was renamed to /foobar/

In my git OSX workspace, this code no longer compiles.

What is easiest way to force a workspace to get the directories with the updated case?

EDIT: Originally I thought that 'git mv' was a option, but now understand that approach is actually for changing case myself of CM-ed files in my workspaces I see at http://salferrarello.com/git-case-sensitive-rename/

git mv FileName.txt filename.tmp
git mv filename.tmp filename.txt
git add filename.txt
gc -m 'case change of filename'

but I want a local change that wont require a git commit.

/Edit

In svn I could I think delete the 'bad' directory and update it from central repo.

Upvotes: 2

Views: 50

Answers (1)

VonC
VonC

Reputation: 1327364

You should be able to:

  • delete (as you mention for svn)
  • git pull
  • and/or update the working tree with a git checkout -- foobar/

Upvotes: 2

Related Questions