Overview

This repo follows best practice from https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/

Usage

Installation

bash -c "$(curl -sSL https://raw.githubusercontent.com/zhoumingjun/dotfiles/master/.bin/dotfiles-install.sh)"
$HOME/.bin/dotfiles-init-submodules.sh

Update 3rd modules

$HOME/.bin/dotfiles-update-submodules.sh

Tips

How to remove sensitive information

Do not save any sensetive data in your dotfiles. If you have ever pushed any sensetive data in github. Please use the following cmd to remove it from git repo.

  # e.g. remove .m2/settings.xml
dotfiles filter-branch --force --index-filter \
    'git rm --cached --ignore-unmatch .m2/settings.xml' \
    --prune-empty --tag-name-filter cat -- --all