fatal: 'upstream' does not appear to be a git repository

C++
You need to a remote repository 
git remote add upstream GIT_REPO
Source

Also in C++: