Miscellaneous script for my everyday usage.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get-git-file 199B

1234567
  1. #!/usr/bin/env zsh
  2. # Gets a single file from a git repo. Doesn't work on GitHub as they don't support git-archive!
  3. # Arg 1: Repo URL
  4. # Arg 2: File name
  5. git archive --remote=${1} HEAD ${2} | tar -x