• Add a remote origin
    git remote add _[remote_name] _[remote_url]
  • Add a remote origin to an initialized local repository
    git init
    git remote add origin <remote_url>
    git push -u origin master
  • View remotes for repository
    git remote -v
  • Remove the Remote
    git remote rm [remote_name]
  • Add a remote origin to a local repository
    • git remote add <origin_name> <remote_url>
  • Push commits to a different origin
    • git push <origin_name> <current_branch_name>

References