added subtree helper
This commit is contained in:
parent
eb06a277f4
commit
70e772f177
2 changed files with 12 additions and 4 deletions
11
README.md
11
README.md
|
@ -6,7 +6,10 @@ Note that `push.sh` overwrites your system's config files, if you aren't a full
|
|||
|
||||
### Layout
|
||||
|
||||
`synced` - list of tracked files
|
||||
`pull.sh` - updates repository from computer
|
||||
`push.sh` - updates computer from repository
|
||||
`./**` - tracked files
|
||||
- `synced` - list of tracked files
|
||||
- `pull.sh` - updates repository from computer
|
||||
- `push.sh` - updates computer from repository
|
||||
- `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
5
nvimsubtree.sh
Executable 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
|
Loading…
Reference in a new issue