Git Remote

git-remote = Manage set of tracked repositories

Git remote : the command is used to connect your local repository to the remote server.

Remote : another location where the git repository exists

git init

git remote -v

-v : Means verbose , which means that we want to know as much as we can of the repository

Origin : It’s a default convention , if the user wants he/she could easily change it to whatever they so choose by writing :

git remote remove origin git remote -v git remote add ” —- ”

Even more helpful commands that we can implement:

git remote [-v | –verbose] git remote add [-t <branch>] [-m <master>] [-f] [–[no-]tags] [–mirror=<fetch|push>] <name> <url> git remote rename <old> <new> git remote remove <name> git remote set-head <name> (-a | –auto | -d | –delete | <branch>) git remote set-branches [–add] <name> <branch>…​ git remote get-url [–push] [–all] <name> git remote set-url [–push] <name> <newurl> [<oldurl>] git remote set-url –add [–push] <name> <newurl> git remote set-url –delete [–push] <name> <url> git remote [-v | –verbose] show [-n] <name>…​ git remote prune [-n | –dry-run] <name>…​ git remote [-v | –verbose] update [-p | –prune] [(<group> | <remote>)…​]

Leave a comment