Skip to content

Instantly share code, notes, and snippets.

@andreaseger
Created December 8, 2016 00:05
Show Gist options
  • Save andreaseger/5317eafc7eab57bc238fc2f9fe1b431c to your computer and use it in GitHub Desktop.
Save andreaseger/5317eafc7eab57bc238fc2f9fe1b431c to your computer and use it in GitHub Desktop.
script to init my dot-files
git clone https://github.com/andreaseger/dot-files /tmp/dot-files --no-checkout
mv /tmp/dot-files/.git ~/.git
rm /tmp/dot-files -rf
cd ~
git reset HEAD
git checkout .
git submodule update --init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment