BMR59 / Portu-WhatsApp

Communications between Portuguese L2 Speakers and Native Speakers via WhatsApp
1 stars 1 forks source link

Cleaning out pesky DS_Store and other computer-generated system files #1

Open ebeshero opened 6 years ago

ebeshero commented 6 years ago

@zme1 @BMR59 Your first repo commit brought with it the inevitable DS_Store file, telling me the committer works on a Mac like I do. :-) We don't really want to bring those files in, but it's almost impossible to control them (your Mac generates them locally as you organize files on your computer). There are similar automatically generated files on PCs and other computers, too--and they're meaningless to your team members when they go to pull in files locally: a PC user or even another Mac user doesn't need your local computer's DS_Store file).

So, to deal with this, there's a little plain text file you can add to a GitHub repo called .gitignore, on which you list file types that you want to screen out of commits. I'll clone your repo, get rid of the DS_Store, and push to your repo the same .gitignore file we're using on DHClass-Hub. Once you do a new git pull, you'll have that .gitignore file locally and it'll stop those files from being pushed again to the "mothership" project repo.

ebeshero commented 6 years ago

...And I've just pushed a commit to help keep your repo tidy. Here's more on the subject of .gitignore files: https://github.com/ebeshero/DHClass-Hub/issues/314 You may want to set one up on your personal repos, too.