Commands
  • About
  • Software Development
    • Glossary
    • System Design
      • CAP Theorem
      • Data Migration
      • EAV Model
      • ETL Process
      • Event Sourcing
      • Outbox Pattern
      • SOLID Principles
    • Standards
      • Character Encoding
      • Twirp
    • Elixir
      • IEx
      • Mix
      • Libraries
      • Code Snippets
    • Node.js
      • TypeScript
  • Commands
    • Bookmarks
    • AWS
      • Athena
      • ECS
    • Docker
      • Manage Images
      • Manage Containers
    • File System
      • Grep
      • Search Files
      • Miscellaneous
    • Git
      • Setup New Project
      • Manage Remotes
      • Release Project
    • GPG
    • Kafka
      • Quick Start
    • Kubernetes
    • OpenShift
      • Manage Roles and Bindings
    • PostgreSQL
    • SSL / TLS
      • Common OpenSSL Commands
      • Create Self-signed Certificate
      • Java Truststore and Keystore
    • SSH
      • Key Management
      • Port Forwarding
    • YUM
      • List Repositories
      • List Packages
    • Miscellaneous
      • Network
Powered by GitBook
On this page
  • List All Remote
  • Add Remote
  • Update Remote Endpoint
  1. Commands
  2. Git

Manage Remotes

List All Remote

git remote -v

Add Remote

This is usually used after git init.

git remote add <name> <endpoint>

Example

git remote add origin git@github.com:cytim/gitbook-linux-commands.git

Update Remote Endpoint

This allows you to switch the remote endpoint between SSH and HTTPS, or to a new endpoint.

git remote set-url <name> <endpoint>

Example:

git remote set-url origin git@github.com:cytim/gitbook-linux-commands.git
PreviousSetup New ProjectNextRelease Project

Last updated 3 years ago