git remote doesn,t work

Hi,

I have created a repository in GitHub and want now connect this with my local repo. But git remote doesn,t work.

Appreciate if somebody who knows what is the problem help me.

BR,

/Fatemeh

PureRumble@PUREMAINFRAME MINGW32 ~
$ git remote add origin https://github.com/Fatemehshirazi/Shiraz.git
fatal: Not a git repository (or any of the parent directories): .git

2 Likes

Did you 

cd

into your local repo?

Thanks for replying. Yes I was in local directory. I have solved the problem. There was something wrong im my command lines for remote and push. 

1 Like