Skip to content

stealify/git-subrepo

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 84.6%
  • Roff 8.7%
  • Makefile 3.2%
  • Perl 2.5%
  • Dockerfile 1.0%