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


#1

What am i doing wrong here?

git remote add origin https://github.com/Mahmutovic/Mahmutovic.github.io.git

However i get the error

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


#2

you are either in the wrong directory:
pwd, get current directory
ls, list files in current directory
cd, use cd to navigate.

Or there is not git repository, in which case you should create one:

git init

#3

About the directory, which directory do we have to be in?


#4

well, in exercise 3 you initialized a git repository in personal-website, sounds that like a good directory to be in


#5

oh, thank you very much, I forgot because I reset exercise


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.