First, you need to check which remote repository your local connected into, git remote -v
.
For example above codes will return these.
origin https://github.com/notalentgeek/pysoc.git (fetch)
origin https://github.com/notalentgeek/pysoc.git (push)
origin
.origin
, git remote rm origin
.git remote add origin https://github.com/notalentgeek/new-pysoc.git
.