Skip to content
/ gh-cp Public

GitHub CLI extension to copy a file from a GitHub repository locally without cloning the repository.

License

Notifications You must be signed in to change notification settings

mislav/gh-cp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

gh cp

A GitHub CLI extension to copy a file from a GitHub repository locally without cloning the repository.

$ gh extension install mislav/gh-cp

$ gh cp
Usage: gh cp <repo> <path> <dest>

$ gh cp cli/cli pkg/findsh/find_windows.go .

$ head find_windows.go
package findsh

import (
        "os"
        "path/filepath"

        "github.com/cli/safeexec"
)

func Find() (string, error) {

About

GitHub CLI extension to copy a file from a GitHub repository locally without cloning the repository.

Topics

Resources

License

Stars

Watchers

Forks

Languages