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:
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.
- remove them repository (see below code)
- 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
Post a Comment