I want to put all my configuration files in my home directory into version control. I only want the hidden files, not the hidden directories which create binaries and what not.
Using this one liner I can create a symbolic link for every hidden file from my home directory to my working (target) directory.
for f in .*; do if [[ -f $f ]]; then ln -s /home/user/$f /home/user/working/directory/$f; fi; done
I execute this command in the source directory.