Add remote URL snippets

This commit is contained in:
Chalarangelo
2021-04-08 19:42:57 +03:00
parent ded483c79a
commit 61ae2147de
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,17 @@
---
title: View the remote URL
tags: repository,intermediate
---
Displays the URL of the remote repository.
- Use `git config --get remote.origin.url` to view the URL of the remote repository.
```sh
git config --get remote.origin.url
```
```sh
git config --get remote.origin.url
# https://github.com/30-seconds/30-seconds-of-code
```