see name of origin + git

C++
 git config --get remote.origin.urlgit remote add origin [your-repository]git remote -v 
Source

Also in C++: