Skip to content

Instantly share code, notes, and snippets.

@rpromyshlennikov
Created July 30, 2025 18:08
Show Gist options
  • Select an option

  • Save rpromyshlennikov/986e7741f8a53617dfafc15c437c2966 to your computer and use it in GitHub Desktop.

Select an option

Save rpromyshlennikov/986e7741f8a53617dfafc15c437c2966 to your computer and use it in GitHub Desktop.
Get one file from remote repo
# Does not work with github because of https://github.com/isaacs/github/issues/554
FILE=README.md && git archive --remote=ssh://[email protected]/username/repo.git HEAD "$FILE" | tar -x "$FILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment