#!/bin/sh
+# Script for devs
#initialize submodules, set-up .git/config and .gitattributes, and pre-push hook
git submodule init && git submodule update --merge
#.gitfat file with remote on gitfat@auder.net
printf '[rsync]\nremote = gitfat@auder.net:~/files/valse\n' > .gitfat
-#manual git-fat init: with relative path to binary
-#1] remove filter if exists http://stackoverflow.com/a/12179641/4640434
-sed -i '1N;$!N;s/\[filter "fat"\]\n.*\n.*//;P;D' .git/config
-#2] place new filter
-printf \
-'[filter "fat"]
- clean = ./.git-fat/git-fat filter-clean
- smudge = ./.git-fat/git-fat filter-smudge\n' >> .git/config
+#Now run git-fat init :)