Closed Niteshvgupta closed 9 years ago
Should I remove these or ignore them?
I think we can remove them, but they will automatically be recreated by OS X when we host local repos on our apple laptops. We should remove them from the repo one time, as described in the article.
Then we ought to configure the .gitignore file as described in that article.
Then we need to consider how to test this.
Please take a look at gists: https://gist.github.com/jdonson/6686919
The first four things to learn about git are:
Please go thru all four on your laptop and consider how we might test this!! Thanks!
=> The right way to do this would be:
https://github.com/jdonson/first-null-commit/issues
We should probably move a lot from the code to the wiki in this project.
Please look at http://github.github.com/github-flavored-markdown/ to see how these entries can be wiki-formatted.
Ok where are we in that list of steps? Step 2, discuss what needs to be done?
Below is what the stackoverflow article says to type in. If we add DS_Store to gitignore, how can it be recreated? Are you talking about different repos? We could just run the script everytime we create a new repo, no?
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch Add the line
.DS_Store to the file .gitignore, which can be found at the top level of your repository (or created if it isn't there already). Then
git add .gitignore git commit -m '.DS_Store banished!'
I believe that there are (at least) two tests to define:
http://augustl.com/blog/2009/global_gitignores/
Does this page give us more info?
At what point in the process of making edits, adding and committing are we expecting to see .gitignore at play?
I think after our first commit we will see DS_Store, no?
Also, from that blog, he made a very good case for using this : > git config --global core.excludesfile ~/.gitignore
My guess is that we would need to configure each Mac computer to globally exclude the file, and then we'd never see it again. Does that sound right?
There are two measures to take:
We would want to ignore all files that are artifacts from all systems: OS X, Linux, Windows
Any Mac User is going to have this issue
removing .DS_store files
http://stackoverflow.com/questions/107701/how-can-i-remove-ds-store-files-from-a-git-repository
Plan is to do what the above article says.