Git command to show origin repo

 refer Git Simple Guide.

git remote show origin

git remote show origin displays info for your remote origin repo. I typically use this when I want to get the URL or the remote repo.

sh-3.2# git remote show origin
* remote origin
Fetch URL: /Users/hafsalrahman/Dropbox/Git/testapp.git
Push  URL: /Users/hafsalrahman/Dropbox/Git/testapp.git
HEAD branch: master
Remote branch:
master tracked
Local ref configured for 'git push':
master pushes to master (fast-forwardable)
sh-3.2#

 

Leave a comment