Posts Tagged shell
Remove and ignore dreamweaver dwsync.xml files from your GIT repo
Posted by admin in Web design & development on August 30, 2011
git ignore dreamweaver dwsync.xml files (and other gubbins as required)
-
Remove any files already added form the working directory. For example:
$ git rm -f *dwsync.xml -
set up your a global git ignore file
create a gitignore file in your home directory. eg:
$ printf "dwsync.xml\nThumbs.db\n" >> ~/.gitignoreusing 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/