i'm using github to host a git repository and i need to clone that repository in some machines (those machines are not for making changes into the code) they are only used to save a copy of the code of a software.
I use the following command line to clone the remote repository into local machines:
git clone -b master git://github.com/jquery/jquery.git jquerylocal
The problem comes when i need to synchronize (get the changes of files and new files added) the local folder named jquerylocal
with the latest version, because my machine add files named .DS_Store
and gives me the following error:
error: Your local changes to the following files would be overwritten by merge:
.DS_Store
I would like to say git to ignore all files that i created in my local directorey and replace with the new ones and make new changes in existing files.
I'd also like to know how to say git to ignore some folders and files to be syncronized.
Thanks a lot.