Skip to content

Instantly share code, notes, and snippets.

@amercier
Last active December 30, 2015 08:29
Show Gist options
  • Save amercier/7803233 to your computer and use it in GitHub Desktop.
Save amercier/7803233 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [ "`whoami`" != "root" ]; then
echo "You must execute this script as root" >&2
exit 1
fi
echo ".--------------------------."
echo "| git-subtree installation |"
echo "'--------------------------'"
which git >/dev/null 2>&1 || aptitude install git
git --version
curl -# https://raw.github.com/apenwarr/git-subtree/master/git-subtree.sh -o /usr/lib/git-core/git-subtree \
&& chmod 755 /usr/lib/git-core/git-subtree \
&& ls -al /usr/lib/git-core/git-subtree \
&& echo ".------------------------------------." \
&& echo "| git-subtree installed successfully |" \
&& echo "'------------------------------------'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment