https://github.com/andrewpetrochenkov/github-fullname
:octocat: get repo github username
https://github.com/andrewpetrochenkov/github-fullname
cli github
Last synced: about 1 month ago
JSON representation
:octocat: get repo github username
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/github-fullname
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2019-02-27T10:35:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T20:57:23.000Z (over 5 years ago)
- Last Synced: 2026-03-05T14:40:22.015Z (4 months ago)
- Topics: cli, github
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[]()
[](https://pypi.org/project/github-fullname/)
[](https://www.npmjs.com/package/github-fullname)[](https://unlicense.org/)
[](https://github.com/andrewp-as-is/github-fullname/actions)
### Installation
```bash
$ [sudo] pip install github-fullname
```
```bash
$ [sudo] npm i -g github-fullname
```
#### Examples
```bash
$ cd path/to/repo
$ github-fullname .
owner/repo
```
```bash
$ find ~/git -type d -mindepth 1 -maxdepth 1 -exec github-fullname {} \;
owner/repo1
SKIP (~/git/repo2): .git NOT EXISTS
owner/repo3
...
```
hide errors
```bash
$ find ~/git -maxdepth 1 -exec github-fullname {} \; 2> /dev/null
owner/repo1
owner/repo3
...
```
show github orphaned repos:
```bash
$ python -m github_repos | grep -v "$(find ~/git -maxdepth 1 -exec github-fullname {} \; 2> /dev/null)"
```
delete github orphaned repos:
```bash
$ python -m github_repos | grep -v "$(find ~/git -maxdepth 1 -exec github-fullname {} \; 2> /dev/null)" | xargs python -m github_delete
```