I have a directory that is tracked by git on linux and I copied it to mac OS.  On git status multiple files are untracked because of a filename: File name too long error.  One filename (with its relative path) is 393 characters.  Isn't there a limit 4096 characters (except on Windows)? [Reference]  My core.longpaths setting is set to true.  (Also so is core.precomposeunicode set to true, but probably irrelevant).  Any advice?
Git 'filename too long' error on OS X
4.5k Views Asked by Daniel Naftalovich At
        	2
        	
        There are 2 best solutions below
0
                
                        
                            
                        
                        
                            On
                            
                                                    
                    
                Other option is change symlink configuration for your project, and you don't need change system vars.
Use the console and use this commands:
- git clone https://github.com/xxx/xxx.git
 - cd xxx
 - git config --list
 - git config core.symlinks false
 - git checkout master
 - git pull origin master
 
I take the answer from:
https://github.com/Urigo/IonicCLI-Meteor-WhatsApp/issues/4#issuecomment-382957742
OS X has
NAME_MAX(bytes in a path name component) set to 255:Is that 393 byte name a single component, or the entire path? (Example:
"foo/bar/baz"has 3 components that are each 3 bytes, and the entire path is 11 or 12 bytes depending on whether you count the terminating'\0'. TheNAME_MAXconstant here does not count a terminating'\0'.)