Git show remote url command
The simplest way
git remote -v #result something similar to the following origin email@example.com:CodepediaOrg/codepediaorg.github.io.git (fetch) origin firstname.lastname@example.org:CodepediaOrg/codepediaorg.github.io.git (push)
Tip to get only the remote URL:
git config --get remote.origin.url #result something similar to the following email@example.com:CodepediaOrg/codepediaorg.github.io.git
In order to get more details about a particular remote, use the
git remote show [remote-name] command
git remote show origin # here "origin" is the remote name #result something similar to the following * remote origin Fetch URL: firstname.lastname@example.org:CodepediaOrg/codepediaorg.github.io.git Push URL: email@example.com:CodepediaOrg/codepediaorg.github.io.git HEAD branch: master Remote branches: _posts/2016-08-26-migrate-rest-api-from-jboss-eap6-to-eap7 tracked add_multiple_authors_functionality tracked dependabot/npm_and_yarn/bl-1.2.3 tracked dependabot/npm_and_yarn/grunt-1.3.0 tracked dependabot/npm_and_yarn/hosted-git-info-2.8.9 tracked dependabot/npm_and_yarn/ini-1.3.7 tracked dependabot/npm_and_yarn/is-svg-4.3.1 tracked dependabot/npm_and_yarn/lodash-4.17.21 tracked dependabot/npm_and_yarn/path-parse-1.0.7 new (next fetch will store in remotes/origin) dependabot/npm_and_yarn/websocket-extensions-0.1.4 tracked feature/add-copy-button-for-code-snippets tracked feature/add-scroll-up-for-posts tracked feature/mongo-commands-via-collections tracked gh-pages tracked master tracked post/multiple-authors-jekyll tracked refs/remotes/origin/dependabot/npm_and_yarn/lodash-4.17.19 stale (use 'git remote prune' to remove) run-grunt tracked Local branches configured for 'git pull': master merges with remote master run-grunt merges with remote run-grunt Local refs configured for 'git push': master pushes to master (up to date) run-grunt pushes to run-grunt (up to date)
Shared with from Codever.
👉 Use the Copy to mine
functionality to copy this snippet to your own personal collection and easy manage
your code snippets.
Codever is open source on Github ⭐🙏