Skip to content

Instantly share code, notes, and snippets.

@untoreh
Last active January 16, 2018 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save untoreh/93fe94b47f644263cad300eafec10d12 to your computer and use it in GitHub Desktop.
Save untoreh/93fe94b47f644263cad300eafec10d12 to your computer and use it in GitHub Desktop.
sync files over git

gitsync

GIT_SYNC_FILES=${GIT_SYNC_FILES:-$(find -name "*.?db")}
GIT_REPO_PATH=${GIT_REPO_PATH:-~/chain}

for f in "$GIT_SYNC_FILES"; do
  ln $f $GIT_REPO_PATH
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment