Reload to refresh your session. up vote -1 down vote favorite I have a web interface for deploying scripts from our repo at Github to our live server. These are the steps I'm taking: Make a change on a file at Github repo Run a bash script (as apache) via web from live server that attempts a git push Either reinstall or make /usr/local writable for your user. have a peek here
How does this Makefile makes C program without even specifying a compiler? Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. My kids watch Youtube, how to monitor what they see? Fetches and whatnot work fine, just reverting fails. > > -Walt > syntevo Support Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate
It appears that /usr/local needs to be group writeable for the installer/brew update to work correctly in all cases, unless someone with a more thorough understanding of Unix permissions can point Is the study of proper names really a branch of linguistics? In another local repository for another website, I have the files with my local machine username as owner, and when I push to the remote server it respects the remote server Git Unable To Unlink Invalid Argument Get these problems: PUSH To [email protected]:name/name.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to '[email protected]:name/name.git' To prevent you from losing history, non-fast-forward updates were rejected Merge
That should solve your problem. Speed of vehicles built by humanoid giants What is the easiest way to obtain all 3 starters in Pokemon Sun/Moon Could a Universal Translator be used to decipher encryption? It created the /usr/local directories etc... Running Process Explorer > Ctrl+F >
Notify me of new posts by email. Sourcetree Unable To Unlink Old Invalid Argument If I make changes locally, push to repo, then run the bash script to pull from repo to live it works fine. That fixed it. Why is onboard/inflight shopping still a thing?
I use 750 for directories and 644 for files. http://fan-zf.blogspot.com/2013/08/error-unable-to-unlink-old-permission.html Thanks a lot, Daniel Moniz git share|improve this question edited Aug 26 '11 at 5:06 asked Aug 26 '11 at 2:42 Paragon 1,14721019 possible duplicate of Git push error: Git Unable To Unlink Old Invalid Argument share|improve this answer answered Apr 27 '10 at 7:26 Mo. 1,46698 add a comment| up vote 0 down vote The push is failing because you've got diverging history. Git Error Unable To Unlink Old Invalid Argument You should have similar errors deleting those files manually, in a command line or file explorer.
I got a bunch of errors produced by post-receive hook script, similar like these: remote: error: unable to unlink old 'filename' (Permission denied) I googled it, and there has been a http://glitchtest.org/unable-to/git-reset-error-unable-to-unlink-old.html Revert would of course be nice :) --- In [hidden email], "waltw87"
I am running SmartGit as > administrator on Windows Vista . . . And unfortunately I'm only in this web browser and my console, which has one tab open to the relevant directory (and two open quite elsewhere). –Paragon Aug 26 '11 at 4:11 Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Check This Out cschep commented Aug 9, 2011 I was running into the same problem on a fresh Lion install with Xcode 4.1, so what I did was: rm -rf /usr/local sudo mkdir /usr/local
Kill that process and it will be freed. Git Unable To Unlink Old Bad File Descriptor The main difference is that this happened when I have not been dealing with submodules in any way (I have never dealt with them before). Sign in.
What's the point of requiring specific inexpensive material components? At least some of them are probably owned by root, given that you’ve pushed and pulled as root. Let me know in the comments if you've got a better way or find errors I'm missing. # Find and record unwriteable files. this contact form This fixed it:
$ sudo chmod -R g+w public/img/favicons
Here is where I found the answer.
rebelcolony commented Aug 16, 2011 works for me on lion, ran the install script on top of existing install jacknagel commented Aug 16, 2011 @mxcl - thoughts? Fix by changing the owner to yourself: sudo chown -R your_login_name /path/to/folder share|improve this answer answered May 20 '14 at 8:08 Vince Yuan 5,91112123 1 On my local development machine, share|improve this answer edited Nov 15 at 14:48 answered Oct 23 '14 at 23:27 Learn OpenGL ES 2,2801930 1 The macworld link is no longer valid. What am I doing wrong?
Email check failed, please try again Sorry, your blog cannot share posts by email. I rolled a 20 on a stealth check. Like your tomcat might be using the file. Thanks for reporting.
This may not be everyone's ideal solution, but it seems to be the only way to make all of the different parts play nice with each other. denji closed this Jun 21, 2015 pizthewiz commented Jun 22, 2015 I ran into the same issue when running on the OS X 10.11 WWDC seed: /u/l/Library 🍔 brew update error: Tried 'git reset --hard' in /usr/local but it said : fatal: Not a git repository (or any of the parent directories): .git /usr/local looks like: drwxr-xr-x 14 root wheel 476 Aug Join them; it only takes a minute: Sign up Git push error: Unable to unlink old (Permission denied) up vote 82 down vote favorite 16 In the remote server I have
But, the accepted answer and the comment below it hasn't answered my problem yet. share|improve this answer answered Aug 8 at 14:41 cadavre 419721 add a comment| protected by Machavity Oct 17 at 17:08 Thank you for your interest in this question. git git-push git-checkout share|improve this question edited Jan 23 '14 at 5:49 pocesar 4,17033260 asked Aug 2 '12 at 9:12 rfc1484 2,544103566 add a comment| 6 Answers 6 active oldest votes BrazilianJoe commented Aug 9, 2011 I had the same update problem.
share|improve this answer answered Nov 13 '13 at 14:47 simonC 95731941 add a comment| up vote 1 down vote You can change the write permissions to get it done. share|improve this answer answered Jan 30 '14 at 9:55 Jeff Simons Decena 1 add a comment| up vote 0 down vote Make sure that any associated processes or threads are not Make sure you change the ownership permission. adamv commented Aug 11, 2011 Ping @mxcl @jacknagel jacknagel commented Aug 11, 2011 Possibly related threads: #6810 #6913 I'm sure there are others.
true roderik commented Aug 9, 2011 Same here: https://gist.github.com/1133979 Clean lion install (nuked my install yesterday :)) Xcode from app store (different from previous installs, so maybe relevant) roderik commented Aug Fetches and whatnot work fine, just reverting fails. -Walt waltw87 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Revert