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
- problem to push files on a repository git
- diff3 output in git conflict style, including mergeable hunks
- Git Not In Sync with Local Branch
- Setting up the version control of .dotfiles while the .config is connected to a forked repo
- How to fix overriding the main branch in Git?
- I can't add text to "Message" in VS Code when committing to Git
- How can i redirect pull request from main branch to another branch
- Xcode commits (possibly outside of any branch) disappeared, how to get them back?
- Git/TortoiseGit : how to apply ONLY the changes from ONE commit from branch A, to branch B?
- How can I reintroduce username an password on git using fedora?
- GIT SKIP EMPTY DIRECTORIES
- Git smudge run once per checkout or per commit?
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- Set environment variable during push for GitHub Actions
- Android WebRTC compile
Related Questions in MACOS
- Error installing Nativescript on Mac M2 Sonoma 14.4.1
- macOS - Most secure way of a GUI SUDO_ASKPASS
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- ZSH function parameters conundrum
- how to make read only file/directory in Mac writable
- macOS BigSur - Unable to run bundled php version or brew php 8
- 9 Digit Addresses in Hexadecimal System in MacOS
- MacOS Bash-Script: while read p and echo
- How to make a range for tail rows on a categorized table in Numbers with JXA scripts?
- Cannot build a basic project with curl on Mac (M2) for Raspberry Pi Pico
- How to recover deleted files from create vite react project
- Can't run built SFML project from Xcode template
- React Native - RealmJS - Linker command failed with exit code 1
- How can I manually add a keyboard shortcut to a Shortcut Action Service directly via the system files, without going through the System Prefs GUI?
Related Questions in FILENAMES
- 1 filenames = [] 2 ----> 3 for file in os.zipfile('images.zip'):
- My Google Apps Script renames all files in a folder from data in a spreadsheet. Can someone explain why it returns an exception error?
- excel filename by vba script causes 2 filenames
- How to obfuscate windows long filenames without exceeding max length
- Applescript How to get the filename from open -a "xx.app" [file] --args "someargs" in the applescript
- How to rename file name in Linux using the command "rename"?
- Changing the all filename field of WooCommerce products
- C++ - Shell API - Is there a way to convert a display file name to a parsed file name?
- Call windows explorer to refresh recycle bin filename
- How to speed up Open Folder "whose name starts with" in AppleScript
- How can I use VBA coding to make word automatically remember the filename of a dragged and dropped image?
- Parent directory \results does not exist, in pytorch when trying to save a new network
- Extracting the date from a filename
- Render PDF from byte[] with specific filename using blazor .net 8
- Use Python or Shell to answer this challenge
Related Questions in LONG-FILENAMES
- Filename too long in Git for Windows when git clone is aborted in the middle
- Git Error: The filename or extension is too long in Kate editor
- Even with LongPathsEnabled set to 1, Windows 10 Explorer doesn't seem to support long paths
- Visual Studio 2022 Not Generating "GeneratedMSBuildEditorConfig.config"
- Is a POSIX_NAME_MAX value of only 14 as expected in Mac OS?
- Long Path Problem using WScript.Arguments
- Oracle HTTP Server "File name too long" ERROR
- Problem in saving specific file name in python 3
- Long File Name Support in Watcom Compiler
- quarkus native image plugin (graalvm 20) crashes on windows 10 home (error 206): cannot run program, filename or extension too long
- Can't delete filename with invalid character windows 10
- How are DOS-filenames handled in the MFT in Windows 10?
- creating file in assembly 16 bit with long file name
- fopen error due to long path gives no such file exist
- Long sentence shortener to generate a readable file name
Related Questions in SHORT-FILENAMES
- Does Delphi treat .exe files differently based on filename length?
- How to get folder names with ~ in PowerShell
- Overcome Windows 7 shell MAX_PATH limit
- Easy way to automatically generate short file name
- Delete file with specific extension in batch file
- How are DOS-filenames handled in the MFT in Windows 10?
- R: get a list of short file names (filenames) for all files in a directory
- Get Dos (8.3) filename
- Batch file issue (filenames with long file extension)
- Copy short 8.3 filename in long mode (Windows)
- Recursive directory listing with 8.3 shortname notation
- What is wrong with my list naming code?
- How can I convert a Windows short name path into long names within a batch script
- NTFS: Copy files with similar long/short file name - Who can explain this phenomenon?
- Git 'filename too long' error on OS X
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'.)