Error Unable To Create Directory For .git/refs/remotes/origin/master
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the unable to create .git/refs/remotes/origin/master.lock permission denied workings and policies of this site About Us Learn more about Stack
Unable To Update Local Ref
Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs error: bad ref for refs/remotes/origin/ 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;
Git Error Cannot Lock Ref
it only takes a minute: Sign up Git error: Unable to append to .git/logs/refs/remotes/origin/master: Permission denied up vote 33 down vote favorite 9 I am having a strange issue that I can't seem to resolve. Here is what happend: I had some log files in a github repository that I didn't want there. I found this script that removes cannot lock ref 'head' files completely from git history like so: #!/bin/bash set -o errexit # Author: David Underhill # Script to permanently delete files/folders from your git repository. To use # it, cd to your repository's root and then run the script with a list of paths # you want to delete, e.g., git-delete-history path1 path2 if [ $# -eq 0 ]; then exit 0are still fi # make sure we're at the root of git repo if [ ! -d .git ]; then echo "Error: must run this script from the root of a git repository" exit 1 fi # remove all paths passed as arguments from the history of the repo files=$@ git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch $files" HEAD # remove the temporary history git-filter-branch otherwise leaves behind for a long time rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune I, of course, made a backup first and then tried it. It seemed to work fine. I then did a git push -f and was greeted with the following mes
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
Git Remote Prune Origin
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask
Git Gc
Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. git prune Join them; it only takes a minute: Sign up Git Setup (remote and local repo) advice needed up vote 7 down vote favorite 1 I bought a personal dev box which I will use for deploying stuff I create http://stackoverflow.com/questions/2642836/git-error-unable-to-append-to-git-logs-refs-remotes-origin-master-permission on my laptop. I thought it would be a good idea to use Git for code management. The idea was that I will keep committing on my laptop and when needed, will push the changes to the remote dev box. I initialized a Git repo on the box and cloned it on my laptop. But After doing git push I get this error: remote: error: refusing to update checked out branch: refs/heads/master remote: error: By default, updating the current http://stackoverflow.com/questions/3605586/git-setup-remote-and-local-repo-advice-needed branch in a non-bare repository remote: error: is denied, because it will make the index and work tree inconsistent remote: error: with what you pushed, and will require 'git reset --hard' to match I know that the remote repo was not bare. I want to ask if the only way to go with my kind of setup is: Initialize a bare repo on Server Clone it on my laptop add new files to the local laptop repo and commit the files push to the remote dev box repo Even this setup gives me errors: No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'. fatal: The remote end hung up unexpectedly EDIT I tried git push origin master Got this error: error: unable to create directory for .git/refs/remotes/origin/master error: Cannot lock the ref 'refs/remotes/origin/master'. Oh dumb me... I think it is sudo as in sudo make me intelligent git installation share|improve this question edited Aug 31 '10 at 4:15 asked Aug 31 '10 at 2:13 user201788 add a comment| 2 Answers 2 active oldest votes up vote 10 down vote accepted The first message, as you said, was because the remote was not a bare repo. The second message was because the bare repo you created had no branches to begin with. When you cloned the repo and checked out a working copy, it created
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 http://unix.stackexchange.com/questions/105261/why-am-i-getting-git-error-remote-error-unable-to-create-temporary-file-no-s company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 unable to the top Why am I getting git error “remote: error: unable to create temporary file: No such file or directory” on push? up vote 0 down vote favorite This problem is getting weirder. My original post follows, but here is the new thing I discovered: I executed git push and it gave me its usual error: Counting objects: 9, done. Delta compression using up to 8 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% unable to create (5/5), 588 bytes, done. Total 5 (delta 4), reused 0 (delta 0) remote: error: unable to create temporary file: No such file or directory remote: fatal: failed to write object error: unpack failed: unpack-objects abnormal exit To USER@REMOTE:/git/PROJECT.git ! [remote rejected] master -> master (unpacker error) error: failed to push some refs to 'USER@REMOTE:/git/PROJECT.git' So being overly optimistic, I thought maybe the "--verbose" option would give me some details, so I immediately tried again: git push --verbose and this time it worked: Pushing to USER@REMOTE:/git/PROJECT.git Counting objects: 9, done. Delta compression using up to 8 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 588 bytes, done. Total 5 (delta 4), reused 0 (delta 0) To USER@REMOTE:/git/PROJECT.git 87d6996..1cae8b3 master -> master updating local tracking ref 'refs/remotes/origin/master' so it's just totally flaky. I'm starting to suspect that git just doesn't like LDAP. Original post: We're transitioning from cvs to git, and I have a test setup where I have a git server that authenticates users with LDAP, let's call it REMOTE, and then my personal machine, let's call it LOCAL. Both machines are Macs. All employees of the company (including me) are members of a group I'll cleverly call GROUP. I ssh'd to REMOTE as me and created a git repository there in a folder named /git/PROJECT.git using cvs2git. Then, back on LOCAL