1
Fork 0

added subtree helper

This commit is contained in:
Andy Killorin 2023-08-21 17:07:51 -05:00
parent eb06a277f4
commit 70e772f177
Signed by: ank
GPG key ID: B6241CA3B552BCA4
2 changed files with 12 additions and 4 deletions

View file

@ -6,7 +6,10 @@ Note that `push.sh` overwrites your system's config files, if you aren't a full
### Layout ### Layout
`synced` - list of tracked files - `synced` - list of tracked files
`pull.sh` - updates repository from computer - `pull.sh` - updates repository from computer
`push.sh` - updates computer from repository - `push.sh` - updates computer from repository
`./**` - tracked files - `nvimsubtree.sh` - updates my Init.vim repository
- `./nvimsubtree.sh pull --squash` - update from github
- `./nvimsubtree.sh push` - push to github
- `./**` - tracked files

5
nvimsubtree.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
prefix="--prefix .config/nvim https://github.com/Speedy6451/init.vim.git master"
twoplus=`echo $@ | tr ' ' '\n' | tail -n +2 - | tr '\n' ' '`
git subtree $1 $prefix $twoplus