2

I'm trying to configure git to work with merging Localizable.strings files on an iOS project. somehow, i noticed that xCode can open the files properly, but git doesn't know how. git treats all .strings files as binary files.

i tried to follow the directions here:

http://blog.xk72.com/post/31456986659/diff-strings-files-in-git

but it's not working for me -> when i do a git merge, git still doesn't show me the conflicts with <<<<< ===== and >>>> in the files. specifically, i get this output:

fatal: bad config file line 41 in .git/config

where my config file on line 41 looks like:

 41 [diff “localizablestrings”]
 42     textconv = “iconv -f utf-16 -t utf-8”

how do i configure git to recognize and properly merge *.strings files?

i also checkedout some of the tools, such as: http://www.loc-suite.org/ but it has 0 documentation.

===================== UPDATE:

okay, so it turns out the double quotes i copy and pasted from html is bad. * facepalm *.

but now even when i merge, i still don't see the git merge conflict markers (>>>>> and <<<<<). is git still not merging these files as text files?

1
  • did you add *.strings diff=localizablestrings to your .gitattributes like that article describes? Commented Nov 13, 2014 at 22:21

1 Answer 1

4

The best way to do this is to use xCode's merge feature.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.