Skip to content

Instantly share code, notes, and snippets.

@vybstat
Last active September 18, 2025 18:40
Show Gist options
  • Save vybstat/1680bef4715bfbcb0268 to your computer and use it in GitHub Desktop.
Save vybstat/1680bef4715bfbcb0268 to your computer and use it in GitHub Desktop.

Revisions

  1. vybstat revised this gist Sep 25, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ds_store_removal
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
    touch .gitignore
    echo .DS_Store > .gitignore

    # commit changes to GitHub
    # push changes to GitHub
    git add .gitignore
    git commit -m '.DS_Store removed'
    git push origin master
  2. vybstat created this gist Sep 25, 2015.
    13 changes: 13 additions & 0 deletions ds_store_removal
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # remove .DS_Store file from GitHub that MAC OS X creates

    # find and remove .DS_Store
    find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch

    # create .gitignore file, if needed
    touch .gitignore
    echo .DS_Store > .gitignore

    # commit changes to GitHub
    git add .gitignore
    git commit -m '.DS_Store removed'
    git push origin master