How to resolve Git error: “Couldn't create temporary repository”

I am extremely new to the concept of Git. I installed the Git plugin for Eclipse and I’m now trying to clone a one year old Eclipse project.

First, I was getting an error saying:

  • What's the difference between “Push…” and “Push to upstream…” in Eclipse
  • git gc / git gui: Unlink of file <internal pack file name> failed
  • How to Resolve Conflict in Eclipse SVN
  • Is it a good practice to include Eclipse project files in with sources in SCM?
  • In Eclipse, how can I exclude some files (maybe based on the .svn extension or filename) from being copied to the output folder?
  • Way to see the whole commit history of a repo in Egit/TortoiseGit?
  • Cannot list the available branches.
    Reason-Exception caught during execution of ls-remote command.
    

    I solved that by doing some ssh-related property changes.

    Now I am getting an error saying,

    Couldn't create temporary repository.
    

    How can I resolve this problem?

  • Why does git push sometimes need a localref argument?
  • fork a forked project with the original acount
  • How does the Android repo manifest repository work?
  • Using Git in R-studio: cannot stage modified code files
  • Git/GitHub Total Number Of Lines Contributed For An Account
  • git directory structure confusion
  • 4 Solutions collect form web for “How to resolve Git error: “Couldn't create temporary repository””

    Assuming that you are on windows: Try to delete file C:/Documents and Settings/[username]/.gitconfig.

    There seems to be some suggestion in the Eclipse forums that the version of EGit you are using might be outdated. Try updating to a more recent version of EGit.

    The address for the latest EGit build is:

    http://download.eclipse.org/egit/updates

    You can find directions for installing adding the software site here.

    If you are running in Windows, run the eclipse as administrator. (Tried and worked)
    If you are in Linux or Mac, open the eclipse with sudo.

    Note that gitconfig can come from different places in this order

    If anyone faced the same issue, what fixed it for me is to have a .gitconfig in the home directory with the name and email entries like so:

    [http]
        sslVerify = false
    [user]
        name = name-in-git
        email = email-in-git@email.com
    

    PS: sslVerify is false due to self-signed certs in my case

    Git Baby is a git and github fan, let's start git clone.