I came across a dotfiles repository on GitHub the other day and it instantly made me realize I've been backing up mine wrong! Let’s set up our own GitHub repo and start doing it the right way, today.

Dotfiles are text-based configuration files for Unix tools. By backing them up to GitHub we make sure all our favorite configurations, hacks, and tweaks don’t get lost in case of a system crash.

Let’s go!

Create a folder called dotfiles and copy the files we want to back up.

Create the folder

mkdir dotfiles

Copy the files you want to backup

cp ~/.<filename> ~/dotfiles/.<filename>


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store