Failing to connect to upstream repo

I get the following when connecting my local branch of openmrs-core to upstream master

Not a git repository (or any of the parent directories): .git

If anyone could help me with this, then that would be great, thanks.

Have done the following

  1. Have cloned the openmrs-core from my forked repo
  2. Navigated to openmrs-core
  3. Ran the command
    git remote add upstream https://github.com/openmrs/openmrs-core.git
  4. It gives an exception
    Not a git repository (or any of the parent directories): .git

@kdaud have you cd into openmrs-core folder before running “git remote add upstream https://github.com/openmrs/openmrs-core.git”?

I navigated to that directory

you can have a look at this https://stackoverflow.com/questions/11961600/fatal-not-a-git-repository-or-any-of-the-parent-directories-from-git-status

1 Like

Have overcome the blocker after first running git init command against the directory. Thanks @gcliff for the resource, it has helped me to figure out the issue :sweat_drops:

1 Like

thats cool

1 Like