Skip to content

Instantly share code, notes, and snippets.

View TerminalRootTV's full-sized avatar

Terminal Root TerminalRootTV

View GitHub Profile
@TerminalRootTV
TerminalRootTV / git-dir.sh
Created September 21, 2019 17:25
Clone Only a Git Subdirectory
#!/bin/bash
# author: Marcos Oliveira <terminalroot.com.br>
# describe: Clone Only a Git Subdirectory
# version: 1.0
# license: GNU GPLv3
if [[ "$(echo $LANG | cut -c 1-2)" != "pt" ]]; then
declare -x l=( "usage"
"Use this flag to inform the REPOSITORY, this option is not optional."