Files
30-seconds-of-code/git/snippets/view-remote-url.md
2023-05-01 22:28:09 +03:00

22 lines
428 B
Markdown

---
title: View the remote URL
type: snippet
tags: [repository]
author: chalarangelo
cover: red-mountain
dateModified: 2021-04-13T21:10:59+03:00
---
Displays the URL of the remote repository.
- Use `git config --get remote.origin.url` to view the URL of the remote repository.
```shell
git config --get remote.origin.url
```
```shell
git config --get remote.origin.url
# https://github.com/30-seconds/30-seconds-of-code
```