Travis Northcutt
Travis Northcutt

Reputation: 25036

How can I display the location of remotes for a git repository?

Is there a way to display all known information about a repository's remotes, either individually or all at once?

Upvotes: 2

Views: 1820

Answers (4)

Paul King
Paul King

Reputation: 2001

This alias will give detailed info for the current remote:

alias showremote="git remote show $(git remote show)"

Upvotes: 0

sehe
sehe

Reputation: 392833

You can see the raw configuration

cat .git/config

or use the remote subcommand

git remote -v

Upvotes: 8

Igor Popov
Igor Popov

Reputation: 10103

git remote should work in this case.

git remote show origin (or any other remotes you may have).

Upvotes: 1

gustavotkg
gustavotkg

Reputation: 4399

It's easy:

git remote show
git remote show <specific-remote>

Upvotes: 4

Related Questions