git - How can I get rid of .DS_Store files that are stuck in remote repo? -


i have re-initialized repos correct .gitignore files, there still .ds_store files in remote heroku.

a git pull heroku master gives:

enter image description here

how can rid of these files once , all?

look have commited files already.

once add , commit files git starts track them.

you have 2 main option ignore files.

  1. remove them repository (see below code)
  2. use ``assume-unchanged` flag mark them unchanged form point on.

in case wish use first option here how.

a .gitignore file specifies intentionally untracked files git should ignore.
files tracked git not affected


how remove commited files , set git ignore them?

you have remove & commit , ignored.

# remove commited files: git rm --cached .ds_store  # add files .gitignore ,  # commit , push git commit -m "removed..." git push origin <branch> 

Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -