git and Umlauts

I had a folder named “TransportAufträge” on MAC OSX which was versioned by git.
I then changed the name (before committing) to “TransportAuftraege”.

Now when trying to commit, I get the following error message:

error: pathspec ‘”App/ViewControllers/TransportAuftra\314\210ge/TransportAuftraege.h”‘ did not match any file(s) known to git.
error: pathspec ‘”App/ViewControllers/TransportAuftra\314\210ge/TransportAuftraege.m”‘ did not match any file(s) known to git.
error: pathspec ‘”App/ViewControllers/TransportAuftra\314\210ge/TransportAuftraege.xib”‘ did not match any file(s) known to git.

It seems like git did not notice that I renamed the folder?

  • Untrack all files on git
  • Git clone on Mac with HTTPS not working
  • meteorite error Cloning Mac
  • Git Install Mac Stuck Verification
  • Cannot find FileMerge (opendiff tool) but I have xcode 4.6 installed
  • Can't add files to git in current directory anymore
  • How to setup Git on a Mac with Windows 8 running in Parallels
  • OSX Using Beyond Compare as git difftool
  • One Solution collect form web for “git and Umlauts”

    When renaming a file under source control, you should use Git to do the rename, e.g.

    git mv TransportAufträge.h TransportAuftraege.h
    git mv TransportAufträge.m TransportAuftraege.m
    git mv TransportAufträge.xib TransportAuftraege.xib
    

    Fortunately, you should be able just to rename the files back to the original names (using Finder or the normal mv command) and then run these git mv commands.

    Git Baby is a git and github fan, let's start git clone.