Can't clone git repo - macos

When I try to do a git clone with the following command:
git clone git#git.skycareehr.com:skycare/skycare.git skycare
I get the following error message:
Initialized empty Git repository in /media/psf/Sites/skycare/.git/
fatal: Unable to create temporary file: Cannot allocate memory
fatal: index-pack failed
[root#centos Sites]# remote: Counting objects: 67251, done.
remote: Compressing objects: 100% (24305/24305), done.
As you can see, the compressing goes to 100% but the repo doesn't actually get cloned.
I'm on a CentOS virtual machine on a Mac OSX host system and this command has worked before. I've installed a fresh version of git using the command yum install git, but I'm still getting the error.

This occurred for us after a Parallels (9) update. Nothing seems to fix the issue short of a downgrade. We tried updating the parallels tools, changing the OS versio, starting with fresh VMs -- but nothing worked short of a downgrade.
Note that in our case, the issue only occurs when cloning on to the shared host filesystem (which we must be able to do). This fails after the update with Ubuntu versions 12.04 up to 13.10.
Sadly, Parallels has been astoundingly sloppy with the shared host FS. We may be forced back to virtual box at this rate.
One other possibility is to just set up an NFS export on your host and use that to share files rather than bothering with the shared filesystem. This seems to work ok for us. Here's a gist that shows how to set it uo:
https://gist.github.com/mowings/9782264

Parallels has released an update which fixed this issue for me:
Official Parallels Support Post
Make sure you've got the latest Parallels Build: 9.0.24237. Instructions for updating Parallels can be found here: How to get the latest build of Parallels Desktop for Mac.

Related

WSL2 git clone/pull throwing 'fatal: : gnutls_handshake() failed: Error in the pull function.'

Trying to setup dev environment on new work pc. Decided to utilize WSL2 and windows terminal. When in wsl2 i'm trying to clone/pull from git repo and getting the following error:
fatal: gnutls_handshake() failed: Error in the pull function
I've already tried a few suggested fixes but to no avail. Any suggestions would be helpful.
Things i've already tried (among other things):
updating wifi/ethernet drivers
disconnecting from vpn
turning off IPV6
modifying serveral conf files
changing nameservers
Hardware: Lenovo ThinkPad X1 Extreme 2nd
Edit:
git seems to be extremely inconsistent, sometimes it works sometimes it throws an error. I've tried git via HTTPS, as well as, SSH.. both seem to have inconsistencies.
also, please note: the previous machine was running wsl2 and git without issue.

remote-https is not a git command when cloning repo

On a Windows (version 10) machine, with the latest git client at the time of writing (2.18.0.windows.1), cloning repositories using HTTPS fails with error:
git: 'remote-https' is not a git command.
After a bit of research it turns out that git comes with several remote-<command> utilities, with remote-https being one of them. The error message therefore seems to tell us that `remote-https is not installed on the machine.
After a bit more research, it seems that similar problems for other developers were solved by installing curl. The machine we're dealing with does have curl (7.46.0) installed as well.
We tried reinstalling the git client a couple of times entirely from git-scm.com as well as gitforwindows.org, both resulting in the same error.
Any help or pointer to get this fixed is highly appreciated.
I just fixed the error in my build env. hope my solution is useful to you.
my env: Windows10+Jenkins+git
git version 2.18.
I just reinstall the git into windows, with a different selection during the installation:"MINTTY". after reinstall, I found the remote-https under my git install directory.
also, you need to set the jenkins env. make sure that the new git path which was included in the Jenkins env configure. if you "echo %Path%", and you can find the new git path which included the remote-https, then you are fine.

git CLI commands error after upgrading to XCode 8

I saw App Store reporting an upgrade to XCode 8 this morning and unfortunately, took the bait. Now, none of the git CLI commands are working. Tried searching on SO and Google but did not find anything helpful, though I did find recent posts of other issues after upgrading to XCode 8. Getting the same error for any git command - as shown below:
%> git status
dyld: Library not loaded: /usr/local/lib/libwep
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
Reason: no suitable image found. Did find:
/usr/local/lib/libwep: mmap() error 1 at address=0x10F0E5000, size=0x0000F000 segment=__TEXT in Segment::map() mapping /usr/local/lib/libwep
/usr/local/lib/libwep: mmap() error 1 at address=0x10F103000, size=0x0000F000 segment=__TEXT in Segment::map() mapping /usr/local/lib/libwep
git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch
As it says, /usr/local/lib/libwep does exist but there is an error when trying to load it. Also, the xcodebuild executable also exists at the path printed in the message, i.e. at /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
I also see another xcodebuild at /usr/bin/xcodebuild but / is not accepted as a valid DEVELOPER_DIR value. Some more possibly useful information: I have Github Desktop installed. So I made a change in one of the source files in my Git repo, and Github Desktop showed the local change successfully in its GUI. However, neither git diff nor git status works from the command-line.
I also tried cloning a fresh local repo but git clone throws the same error, too.
Looks like this is not related to XCode. I found the following after some searching: https://forums.developer.apple.com/thread/7862
So, libwep is used by WebSense, an application that is installed by default on all computers in the corporate environment I am working in. It is meant for security and restricts certain operations. For example, I can not execute any Heroku CLI commands, either, because of it.
What threw me off was that, even with WebSense, I was able to run git CLI commands until last week, but then I also installed a new version of the WebSense client late last week. So it may be the new WebSense version that is now blocking git CLI commands, too. That I installed XCode 8 today could be just a coincidence, or another possibility is that the XCode 8 upgrade in combination with the WebSense client upgrade resulted in this situation.
Anyway, thankfully, Github Desktop still seems to work so I'll just have to use that.
If you don't develop anything on Xcode just delete Xcode from program files and run git from CLI again. The required tools will be downloaded automatically. No issues.
I did have the same issue this morning when I tried to use my git. I had to go in and delete the program and reinstall the git client for mac. It started working for me after that.

Git on Mac: Undefined symbol "locale_charset"

Completely out of the blue this morning, the git on my mac laptop stopped working. I'm getting the error:
$ git pull origin master
/usr/local/libexec/git-core/git-shell: Undefined symbol "locale_charset"
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I'm running OSX 10.9.5.
I've seen some solutions for bsd using ports, but does anyone know how to resolve this on OSX? Is it possible to completely reinstall xcode's command line tools, and would that relink everything properly?
Thanks.
Ahh, turns out the error was on the remote server. Upgrading bash to fix shellshock screwed up a lot of programs.
The remote server needed to upgrade its git install. Afterwards everything functioned properly

Cannot Clone GIT Repository from windows server but can SSH

I have a seen a lot of posts related to the error I am getting but can't find anything that seems like a potential fix I would like to try without getting feedback from some people who know better.
The Setup: I recently built a Windows 7 PC and installed Apache, PHP and MySQL. Everything is working great with my setup and I opened the server up to other devices on the LAN. When I go to a browser and navigate to IPADDRESS:PORT (Installed Apache to listen on a custom port to avoid potential conflicts (Skype, future IIS install?, etc) I get my htdocs index.php page. Great so far.
The last thing I wanted to do was setup Git so that I can do work for my server on my Macbook Pro and push changes to the server. To get this up and running I installed msysgit on my server and was able to create a Git repository for a Media directory I created at the root of my server. When I open this directory up in Explorer I can see the .git directory. The next thing I did was install OpenSSH on the server and I got that up and running. I also changed the default home directory of an SSH connection to the htdocs folder of my Apache server.
Now when I move over to my Macbook pro to test the setup and I am getting problems.
SSH seems to be functioning as expected. When I am on my laptop and run ssh USERNAME#IPADDRESS I get the message to enter my password, I enter my login password and awesome I am in the shell of my server at the htdocs directory.
Git does not seem to be functioning as easily though. I have Git on my Macbook Pro and was able to create a repository in a local directory no problem. When I navigate to a new directory in Terminal that I would like to work with the Media folder project I created on the server and run the following Git commands:
git clone USERNAME#IPADDRESS:/Media
git clone USERNAME#IPADDRESS:\Media
git clone USERNAME#IPADDRESS:/Media.git
git clone USERNAME#IPADDRESS:/Media/.git
etc
(Not sure what exact command I'm supposed to be running. Do I need .git at the end of this command? I see a hidden .git directory in the Media directory but I don't see a Media.git file.)
I get the following error:
Received disconnect from IPADDRESS: 2: fork failed: Resource temporarily unavailable
fatal: The remote end hung up unexpectedly
Based on my searching I can't tell if this error is coming from my client (Macbook Pro) or server. I read that it could be a threading limit set on my Macbook so I entered the following commands and upped my maxprocperuid:
sudo sysctl -a|grep maxprocperuid (which outputted 709)
sudo sysctl -w kern.maxprocperuid=3000 (upped it to ridiculous number to see if it was the problem)
But I am still getting the error when trying to clone the repository.
If you've gotten to the end of this thanks, just trying to provide as much info as possible and any help would really be appreciated.
Thanks.
Try uninstalling OpenSSH and then installing WinSSHD again. Check out this link which suggests the same.
Also, this question might be of some help to you while you are at it.
Git doesn't use ssh by default so you have to specify it when cloning
git clone ssh://[username]#[ip-address]:[port][/path/to/repo]

Resources