Some colleagues and I have been working on a project stored in a private Git repository. Historically, there have been no problems, but recently I attempted to clone and got the following problem:
Cloning into 'project'... warning: You appear to have cloned an empty repository. Checking connectivity... done. A git log provides:
fatal: your current branch 'master' does not have any commits yet This isn't correct - my colleague pushed plenty of non-empty changes on Dec. 6 (although now that branch isn't showing on a --single-branch clone attempt). After ssh-ing into the Git repository, there is plenty of files and folders there.
So, my questions:
- How could this have happened?
- How can we recover the repository? It seems the stuff is on the remote repo, but for some reason, it isn't aware that it's there.
master? If so, do you just need to check out that branch?