Check if the repository you are trying to pull from contains any commits. A fresh empty repository might have HEAD not yet defined. To check this run "git show-ref --head" and check if it lists "HEAD".
Also check this: you should have a currently checkout-out branch in the repo from which you do pull. The error message tells you that we can't resolve the current HEAD in your local repo - the repo into which you want to pull. Maybe it's a very new repo where the master branch is not yet born (no commit has been done yet to master).
The GIT Repository I am using is this
I was able to do a GIT fetch/pull with TortoiseGUI
With pull I get this
Pull on repository without HEAD currently not supported
With get I get this origin: not found.
If I use fetch setting teh remote location the GIT URL: git.fetch().setRemote("egit.eclipse.org/jgit.git").call();
org.eclipse.jgit.errors.TransportException: Nothing to fetch.
git show-ref --head shows this
Please help me!, THanks!