git ignore dreamweaver dwsync.xml files (and other gubbins as required)

  1. Remove any files already added form the working directory. For example:

    $ git rm -f *dwsync.xml

  2. set up your a global git ignore file

    create a gitignore file in your home directory. eg:

    $ printf "dwsync.xmlnThumbs.dbn" >> ~/.gitignore

    using git config add this to you git prefs

    $ git config --global core.excludesfile ~/.gitignore

For repos that may be worked on by multiple users you should also create this file at the root of your working directory.

References
hcodep://jqr.github.com/2009/02/03/global-git-ignore.html
hcodep://help.github.com/ignore-files/