Skip to content

andrewpetrochenkov/github-fullname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

:octocat: get repo github username

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published