You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A gh command to copy a file from a repo without being in a local repo context #4706
Thank you for the request! I do not believe this feature would be core material, as it's too specific. It's also trivial to do yourself over GitHub API:
gh api -H 'Accept: application/vnd.github.v3.raw'"repos/{owner}/{repo}/contents/PATH"> ./LOCAL-FILE
Activity
Ameausoone commentedon Nov 8, 2021
(Awesome job BTW)
mislav commentedon Nov 8, 2021
Thank you for the request! I do not believe this feature would be core material, as it's too specific. It's also trivial to do yourself over GitHub API:
Here, I've made you an extension for this: https://github.com/mislav/gh-cp
Ameausoone commentedon Nov 8, 2021
Whooo ! Thx @mislav, I discover gh extension !