Error Git Checkout-index Unable To Create Symlink
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or
Git Unable To Create File Permission Denied Windows
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss git symlinks Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes
Filename Too Long Git
a minute: Sign up Git: unable to create symlink (File name too long) up vote 10 down vote favorite 2 I had pushed a project from linux to bitbucked and then cloned it on windows. Turns out there were two git for windows symlinks, which appeared as textfiles on windows. Since I knew where they should point to, I replaced them by copies of their destination files, committed and pushed. Now the butbucket repository looks okay when I look it it from their web interface. However a git clone on my unix machine gives me two messages like: error: unable to create symlink ... (File name too long) and the two files, which were symlinks previously are absent. I tried cloning into /tmp/... to get shorter filenames, but got the same results. That suggests, that something went bad with the bitbucket repository. I tried core.symlinks on and off. I can live without the symlinks, but I'd like to have a working repository. Does anybody know a way (other than recreating the repository)? git bitbucket symlink share|improve this question edited Aug 24 '13 at 4:39 asked Aug 23 '13 at 20:20 Martin Drautzburg 2,315724 add a comment| 4 Answers 4 active oldest votes up vote 10 down vote accepted As soon as you changed the content of a fake-symlink-file without also changing its mode from symlink to regular file and committed the result, you made a blob that can't be extracted on an OS with real symlinks, because you have an object that is supposed to be a symlink but its content is too long to be a pathname. The web interface is not doing you any favors by hiding this problem. You're probably going to have to back up to that commit, fix it, and re-commit everything after it. git rebase -i will help, but it still might not be easy, especially if you've made more changes to the files while they were in this bogus symlink-but-not-really-a-symlink state. Supposing that the bad commit is abcdef123, you need to do this: git rebase -i 'abcdef123^' which will put you in an editor with a list of commits. abcdef123 should be on the first line. On that line
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error: git checkout-index: unable to create http://stackoverflow.com/questions/18411200/git-unable-to-create-symlink-file-name-too-long file (Permission denied) up vote 1 down vote favorite 1 When I try and pull from github I get a strange error. Can I bypass this or force it? I have used sudo before which I suspect would work however this caused other problems. git permissions pull share|improve this question asked Jun 11 '12 at 8:37 LeBlaireau 2,80194386 2 Do you have write permission in the http://stackoverflow.com/questions/10976765/error-git-checkout-index-unable-to-create-file-permission-denied directory from where you ran git clone? –Benjamin Bannier Jun 11 '12 at 8:40 stackoverflow.com/questions/1209902/… doesn't help? –VonC Jun 11 '12 at 9:00 @VonC: Since he mentions sudo he probably works under Linux or OS X. –Benjamin Bannier Jun 11 '12 at 9:30 @honk good point. Then your permission issue is certainly closer to the mark. –VonC Jun 11 '12 at 9:56 You probably don't want to use sudo in connection with Git in your own development environment. –Eric Walker Mar 11 '13 at 5:47 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote I had this problem as well. I solved it by changing the ownership of the directories to the user I was trying to git pull with: sudo chown -R anthony:anthony * I ran that at the root of my git tracked directory to make sure all the files were owned by the correct user. share|improve this answer answered Mar 11 '13 at 4:31 penner 1,63611437 add a comment| up vote 2 down vote In my case it was having sublime text open with the git controlled directory added as
a GitHub account Sign in Create a gist now Instantly https://gist.github.com/434828 share code, notes, and snippets. Star 0 Fork 0 ewheeler/contrib-apps-dev Created Jun 11, 2010 Embed What would you like to do? Embed Embed this gist in your website. Embed Share Copy sharable URL for this gist. Share Clone via HTTPS Clone with Git or checkout with unable to SVN using the repository's web address. HTTPS Learn more about clone URLs Download ZIP Code Revisions 1 Raw contrib-apps-dev [~/dev]$ git clone git@github.com:rapidsms/rapidsms-contrib-apps-dev.git contrib-apps-dev Initialized empty Git repository in /Users/ewheeler/dev/contrib-apps-dev/.git/ remote: Counting objects: 8893, done. remote: Compressing objects: 100% (3420/3420), done. remote: Total 8893 (delta unable to create 5161), reused 8730 (delta 5079) Receiving objects: 100% (8893/8893), 2.60 MiB | 325 KiB/s, done. Resolving deltas: 100% (5161/5161), done. error: git checkout-index: unable to create symlink locations/static/javascripts/label-overlay.js (File name too long) error: git checkout-index: unable to create symlink locations/static/javascripts/mask.js (File name too long) error: git checkout-index: unable to create symlink locations/static/stylesheets/label-overlay.css (File name too long) Owner ewheeler commented Jun 11, 2010 could be related to http://github.com/rapidsms/rapidsms-contrib-apps-dev/commit/2eb51fb15383ced1477d19752ce536d43712a513 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.