Skip to main content

get repo github username

Project description

Installation

$ [sudo] pip install github-fullname
$ [sudo] npm i -g github-fullname

Examples

$ cd path/to/repo
$ github-fullname .
owner/repo
$ find ~/git -type d -mindepth 1 -maxdepth 1 -exec github-fullname {} \;
owner/repo1
SKIP (~/git/repo2): .git NOT EXISTS
owner/repo3
...

hide errors

$ find ~/git -maxdepth 1 -exec github-fullname {} \; 2> /dev/null
owner/repo1
owner/repo3
...

show github orphaned repos:

$ python -m github_repos | grep -v "$(find ~/git -maxdepth 1 -exec github-fullname {} \; 2> /dev/null)"

delete github orphaned repos:

$ python -m github_repos | grep -v "$(find ~/git -maxdepth 1 -exec github-fullname {} \; 2> /dev/null)" | xargs python -m github_delete

readme42.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github-fullname-2020.12.3.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file github-fullname-2020.12.3.tar.gz.

File metadata

  • Download URL: github-fullname-2020.12.3.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for github-fullname-2020.12.3.tar.gz
Algorithm Hash digest
SHA256 b497d9489763af06916b80dba9afbb492e0a5b9127a2e1d07d10b7f4dd8c4541
MD5 8d1accc0895dac190bf420d316f7b48f
BLAKE2b-256 2070593cef717de782133787c7575ad8faa578da0f57f13b933d4572c87851e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page