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
Locoucla
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
Related Questions in GIT
- Push mysql database script to server using git
- Git show's file path
- Git > diffs filtered, show only certain changed classes/files
- Pushing to git repository hosted by Visual studio online without entering user name and password
- How do I create my own Git branch to work on?
- Git init --bare giving error fatal: Out of memory? mmap failed: No such device
- Sub-directory into independent repository and later merge back into main repository
- How to find the Git Revision Hash in a synced SVN repo using SubGit?
- eclipse errors when try to change to master git branch
- How to have Heroku build my development branch on a staging server?
- Is "Merged in" a commit message created by bitbucket, or git?
- Git: Multiple projects under one directory
- Permission denied hg-git
- Is it possible to clone a private git repo without adding ssh keys
- Track file in master repository which is ignored in submodule
Related Questions in MACOS
- How do I customize NSOutlineView to have border color?
- Force sublime text to use PATH from the shell value
- Do executable files always open a terminal window on MacOS?
- setting OpenGL version in objective-C
- C std library don't appear to be linked in object file
- Cross compile simple standard C program on Linux for Mac
- How to generate request format for WCF web service method for Mac and iPhone
- Bundle Multiple Xamarin apps in one pkg installer
- How to Handle Command Line Prompt from a Cocoa App
- AVFoundation - Process each image separately
- CMYK NSImage get pixel data
- how i get the mac of ibeacon or BLE
- Set JAVA_HOME on Mac
- Finding active IPv6 interfaces under Mac OS (using Python)
- OSX: Why is my launchd agent running my script twice?
Related Questions in FILENAMES
- Saving multiple files with same name
- Calling a variable in Matlab without using the full name?
- Remove part of filename of files that are in different folders
- VBA – print file name in each row until the file closes
- Tail command - follow by name on Solaris
- Why the names of some css, js files have random numbers in them?
- How to capture a photo and immediately put it into an existing pdf?
- Get fileName property of PharFileInfo Object
- PHP - Find File in Directory By File Name
- Issue creating .txt file with long name
- Rename files if already exists centos7
- Only convert files with the string "DUPLICATE" in the name
- Database Table Path Combinations
- how to get the filename from the mentioned list
- Batch-Script: Replace every "@" in file name with "_" in network drive including subfolders
Related Questions in LONG-FILENAMES
- Oracle HTTP Server "File name too long" ERROR
- _wsplitpath_s() alternative to use with long paths
- How do I create then use long Windows paths from Perl?
- How to set long string(>260) in default FileName in SaveFileDialog?
- Problem in saving specific file name in python 3
- Is it possible to use special characters to represent a space in Windows?
- What is wrong with my list naming code?
- Long sentence shortener to generate a readable file name
- fopen error due to long path gives no such file exist
- How to get long filename from ARGV
- Is there a workaround for the filename length limit in encfs?
- Maximum Length For Filename
- Windows 10 Maximum Path Length Limitation
- Is a POSIX_NAME_MAX value of only 14 as expected in Mac OS?
- How do I unmangle Windows filenames in Java?
Related Questions in SHORT-FILENAMES
- Overcome Windows 7 shell MAX_PATH limit
- Get Dos (8.3) filename
- What is wrong with my list naming code?
- Delete file with specific extension in batch file
- JSON 3-letter file extension convention
- Copy short 8.3 filename in long mode (Windows)
- Convert long filename to short filename (8.3)
- Convert long filename to short filename (8.3) using cmd.exe
- What's the advantage of having an 8-letter process?
- Recursive directory listing with 8.3 shortname notation
- How are Short File Names generated in Windows?
- Git 'filename too long' error on OS X
- How are DOS-filenames handled in the MFT in Windows 10?
- Does Delphi treat .exe files differently based on filename length?
- R: get a list of short file names (filenames) for all files in a directory
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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'.)