git remote -v
# View existing remotes
git remote set-url origin https://github.com/user/repo2.git
# Change the 'origin' remote's URL
git remote -v
# Verify new remote URL
(Source: http://stackoverflow.com/a/19298943/2574238)
git branch -vv
## to set the pull
git push -u remote local_branch:remote_branch
## to set the default push
git config push.default upstream
(see http://stackoverflow.com/a/5739015/2574238 and http://stackoverflow.com/a/5740047/2574238)
Thanks!