Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/the10thwiz/git-remote-url
https://github.com/the10thwiz/git-remote-url
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/the10thwiz/git-remote-url
- Owner: the10thWiz
- Created: 2022-01-17T16:02:17.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T17:39:01.000Z (almost 3 years ago)
- Last Synced: 2024-10-15T10:01:13.853Z (3 months ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-remote-url
Prints the remote url of a repository. This is intended to be run inside a
prompt to identify the repository.The remote url used is the remote of the upstream branch, otherwise defaulting to the `origin`
remote if the current branch doesn't have an upstream branch. If there is no remote found,
the directory name of the repository root is used instead.For convience, the protocol, `.git`, `git` ssh user, and `github.com` are stripped from the url.