So, I have the next problem.
For example my gitignore file contains this:
If this is my first push to bared remote git server after that described files won't be sended.
But if I at least one time sended this files without gitignore, then made gitignore contains:
/app/config
/app/tmp
/plugins
/vendors
Git will push this files too. So, how can I gitignore already pushed files for the next commits?
/app/config
/app/tmp
/plugins
/vendors
Asked
Active
Viewed 369 times
1

Clark
- 347
- 2
- 5
- 13
1 Answers
1
You cannot remove them from history without breaking everything for people which have already cloned your repository, and that is hard and time-consuming anyway. Just remove them with git rm <...>
and push your changeset.

Catherine
- 484
- 1
- 3
- 11