git-repo icon indicating copy to clipboard operation
git-repo copied to clipboard

fatal: 'origin' does not appear to be a git repository

Open tzebrowski opened this issue 10 years ago • 2 comments

My environment: Windows 7 enterprise, git 2.6.2, python 2.7.11.

When trying to initiate repository with command repo init -u https://android.googlesource.com/platform/manifest I got an error like: fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository.

Is it possible to solve it?

tzebrowski avatar Jan 21 '16 11:01 tzebrowski

Thank you for the feedback.

Could you provide the full trace? If nothing else than the two lines are shown, could you set the env variable "REPO_TRACE" to 1 before calling repo?

`export REPO_TRACE=1`

Beside this, be aware of the fact that you get errors on Windows with the Android source (most surely) since it is not case sensitive regarding files and dirs.

mputz86 avatar Mar 18 '16 08:03 mputz86

origin is your fork: your own repo on GitHub, clone of the original repo of GitHub (stackoverflow)

if you have already set up git username/email with git config, try specifying a branch repo init -u https://android.googlesource.com/platform/manifest -b master

I've had it pull the android source properly but can't remember the exact details. It successfully repo sync too, in cmd/cli (not minGW)

matcheydj avatar Mar 19 '16 16:03 matcheydj