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:

  • Should I keep my project files under version control?
  • Cannot move project as it overlaps… Git/Eclipse
  • Android: Having trouble working with Camera source code
  • Best git structure for importing android dependent project with egit in eclipse
  • Eclipse EGit Rebase w/merge
  • Can I convert eclipse source folders into packages?
  • 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?

  • What should one put into npm package?
  • npm ERR! install Couldn't read dependencies on mac
  • create tree without using staging area
  • Download specific files from github in command line, not clone the entire repo
  • How can I uninstall git on Eclipse?
  • Git Push Error: insufficient permission for adding an object to repository database
  • 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.