Advertisement
otku

gitignore

Jan 3rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # remove any existing files from the repo, skipping over ones not in repo
  2. find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
  3.  
  4. # specify a global exclusion list
  5. git config --global core.excludesfile ~/.gitignore
  6.  
  7. # adding .DS_Store to that list
  8. echo .DS_Store >> ~/.gitignore
  9.  
  10. git add .gitignore
  11. git commit -m '.DS_Store banished!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement