How to add/remove remote git repositiory

    To add remote origin to repository Open terminal:
    cd repo_directory
    git remote add origin git@github.com:testcomp/testing.git
    git push origin master
    To remove remote from repository:
    $: git remote -v // Will list remote urls
    # origin  git@github.com:testcomp/testing.git (fetch)
    # origin  git@github.com:testcomp/testing.git (push)

    $: git remote rm origin

    $: git remote -v // Will list nothing now
    5
    Average: 5 (1 vote)