[SOLVED] Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)

I am new to git and therefore facing some newbie errors.

When trying to add a shortname for my repository via command

git remote add <myshortname> ssh://user@server:port/path_to_my_bare_git_repo

, I was greeted with following error message:

fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

In my case, reason for this error message is pretty simple. When running above mentioned call, it must be done from a git repository locally.
Therefore first create locally your folder, then from this folder run “git init“.

From there you can run the git remote add … command without error.


Post a Comment

Your email is never published nor shared. You're allow to say what you want...