3 #initialize submodules, set-up .git/config and .gitattributes, and pre-push hook
4 git submodule init
&& git submodule update
--merge
12 *.ps filter=fat\n' > .gitattributes
15 python .nbstripout
/nbstripout.py
--install --attributes .gitattributes
17 #pre-commit and pre-push hooks: indentation, git fat push, submodules update
18 cp hooks
/* .git
/hooks
/
21 echo 'if (! "formatR" %in% rownames(installed.packages()))
22 install.packages("formatR",repos="https://cloud.r-project.org")' | R
--slave
24 #.gitfat file with remote on gitfat@auder.net
25 printf '[rsync]\nremote = gitfat@auder.net:~/files/valse\n' > .gitfat
27 #manual git-fat init: with relative path to binary
28 #1] remove filter if exists http://stackoverflow.com/a/12179641/4640434
29 sed -i '1N;$!N;s/\[filter "fat"\]\n.*\n.*//;P;D' .git
/config
33 clean = ./.git-fat/git-fat filter-clean
34 smudge = ./.git-fat/git-fat filter-smudge\n' >> .git
/config