Corey Corey - 1 year ago 110
Git Question

Receiving "fatal: Not a git repository" when attempting to remote add a Git repo

I am introducing myself to Git by following this tutorial:

Everything works fine up until the part where the repo is added to my local machine:

git remote add nfsn ssh://USERNAME@NFSNSERVER/home/private/git/REPONAME.git

(After replacing USERNAME, NFSNSERVER, and REPOAME with the correct names) I receive the error:

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

Can you help me get past this step?

Answer Source

Did you init a local Git repository, into which this remote is supposed to be added?

Does your local directory have a .git folder?

Try git init.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download