Skip to content

Instantly share code, notes, and snippets.

@T1T4N
Created October 14, 2022 09:47
Show Gist options
  • Save T1T4N/f69b7b354ef7c84a965d331ddcdc93cd to your computer and use it in GitHub Desktop.
Save T1T4N/f69b7b354ef7c84a965d331ddcdc93cd to your computer and use it in GitHub Desktop.
# Cloning a treeless repo from a reference on disk
git clone --reference "$HOME/Developer/repo-ref" --filter=tree:0 ssh://git@bitbucket/repo.git repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment