How single branch of git must be uptodate?

git remote add upstream gives error: fatal: not a git repository (or any of the parent directories): .git