Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 604 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 604 Bytes

github:/stealify/git-subrepo

use it like that

npx github:/stealify/git-subrepo

Bash Script

dirname $(which git)

#!/bin/bash
npx github:/stealify/git-subrepo "$@"

Install

install it in the same dir as your git command. the << \EoF > is a so called HereDoc in bash google it if you are not aware of that. the slash tells bash to not interpret the variables before writing the file.

install.sh

#!/bin/bash

cat << \EoF > $(dirname $(which git))/git-subrepo
#!/bin/bash
npx github:/stealify/git-subrepo "$@"
EoF

chmod +x $(dirname $(which git))/git-subrepo