Skip to content

Git shallow clone local repo

ref: https://stackoverflow.com/questions/40383230/git-clone-warning-depth-is-ignored-in-local-clones-use-file-instead

git clone --depth 1 file://$(pwd)/src_repo new_repo