Git Error Git-upload-pack Command Not Found
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 bash: git-upload-pack: command not found this site About Us Learn more about Stack Overflow the company Business
Git-upload-pack Command Not Found Windows
Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask git upload pack not found eclipse 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
Gerrit Code Review: Git-receive-pack: Not Found
up git-upload-pack: command not found, how to fix this correctly up vote 154 down vote favorite 46 I have been using git to keep two copies of my project in sync, one is my local box, the other the test server. This is an issue which occurs when I log onto our remote development server using ssh; git clone me@me.mydevbox.com:/home/chris/myproject Initialized empty Git what is git-upload-pack repository in /tmp/myproject/.git/ Password: bash: git-upload-pack: command not found fatal: The remote end hung up unexpectedly fetch-pack from 'me@me.mydevbox.com:/home/chris/myproject' failed. (the file-names have been changed to protect the guilty... !) Both boxes run Solaris 10 AMD. I have done some digging, if I add --upload-pack=which git-upload-pack the command works, (and proves that $PATH contains the path to 'git-upload-pack' as per the RTFM solution) but this is really annoying, plus 'git push' doesn't work, because I don't think there is a --unpack= option. Incidentally, all the git commands work fine from my local box, it is the same version of the software (1.5.4.2), installed on the same NFS mount at /usr/local/bin. Can anybody help? git version-control unix ssh share|improve this question edited Sep 17 '09 at 12:37 asked Oct 22 '08 at 11:14 Chris Huang-Leaver 3,39152852 add a comment| 13 Answers 13 active oldest votes up vote 158 down vote accepted Make sure git-upload-pack is on the path from a non-login shell. (On my machine it's in /usr/bin). To see what your path looks like on the remote machine from a non-login shell, try this: ssh you@remotema
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Install Git-upload-pack
and policies of this site About Us Learn more about Stack Overflow
"upload-pack Not Permitted On This Server"
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation git-upload-pack not permitted 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 http://stackoverflow.com/questions/225291/git-upload-pack-command-not-found-how-to-fix-this-correctly only takes a minute: Sign up git push error git-receive-pack up vote 4 down vote favorite 2 I have two git repositories on different networks. I had been communicating between the two of them without problem but for some reason today when I am doing a "git push", I am getting the following error: ---------------------------------------------- bash: git-receive-pack: command not found http://stackoverflow.com/questions/15777797/git-push-error-git-receive-pack fatal: The remote end hung up unexpectedly ---------------------------------------------- I googled and made sure that the "/usr/local/bin" was in my "$PATH". Here is the output of the bin directory of my git: [pradeep@laptop ]$ls -l /usr/local/git/bin/ total 16760 -rwxr-xr-x 1 root wheel 4329416 Mar 26 20:06 git* -rwxr-xr-x 1 root wheel 14852 Mar 26 20:06 git-credential-osxkeychain* -rwxr-xr-x 2 root wheel 162402 Mar 26 20:06 git-cvsserver* lrwxr-xr-x 1 root wheel 3 Apr 3 11:02 git-receive-pack@ -> git -rwxr-xr-x 2 root wheel 1830248 Mar 26 20:06 git-shell* lrwxr-xr-x 1 root wheel 3 Apr 3 11:02 git-upload-archive@ -> git -rwxr-xr-x 2 root wheel 1893064 Mar 26 20:06 git-upload-pack* -rwxr-xr-x 1 root wheel 333121 Mar 26 20:06 gitk* Any ideas what might be going wrong? Thanks -------------- Edit ------------------- I have the following line in the ".bashrc" of my remote system: export PATH=$LOCAL/git-1.8/bin/:$PATH This is the output on the remote machine: $ls $LOCAL/git-1.8/bin git git-cvsserver gitk git-receive-pack git-shell git-upload-archive git-upload-pack And this is the output when I do "ssh user@remote env" from my machine to the remote machine: [pradeep@laptop ~]$ssh k00603@k.rics.riken.jp env SHELL=/bin/ba
Start 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 http://serverfault.com/questions/489834/trying-to-clone-a-bare-git-repo-could-not-read-from-remote-repository or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. 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 top Trying to clone a bare git repo: Could not read from remote repository up vote 0 down vote favorite 1 I not found set up a git user on my Mac OS 10.7 system. In the root, there's a /repositories/test.git repo. When trying to clone it with git clone git@server:repositories/test.git it fails me with: bash: git-upload-pack: command not found fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. What am I doing wrong? git share|improve this question asked Mar 20 '13 at 20:58 Kriem 10517 add a comment| 1 Answer 1 active oldest command not found votes up vote 1 down vote accepted See http://stackoverflow.com/questions/225291/git-upload-pack-command-not-found-how-to-fix-this-correctly for details, but essentially the server doesn't have git-upload-pack in the right directory for a non-login shell to execute. share|improve this answer answered Mar 20 '13 at 21:11 Jeff Ferland 16.7k14071 The thing is that if I place the repo in my own users root, the clone succeeds. So, I'm thinking it might be a rights issue. –Kriem Mar 20 '13 at 21:30 Although that actually solved my command line issues, Atlassian SourceTree still won't push. I think it's a different issue though. –Kriem Mar 21 '13 at 11:07 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged git or ask your own question. asked 3 years ago viewed 5474 times active 3 years ago Related 2git clone is blank from a Gitosis Served Repository20git pull specific revision from remote repository1git push not updating the cloned from repo2removed large files from git repo; repo still humongous4Can I make git extract a working copy only from a remote repository?2What's the difference between a normal/bare git repository?0Accessing git repo remotely (server setup)0Remote gi