L
L
LoliDeveloper2021-07-07 11:56:05
git
LoliDeveloper, 2021-07-07 11:56:05

How to delete files from server using .gitignore?

Accidentally uploaded a bunch of files to the repository, and only then added .gitignore
How to make files that match the list of ignored extensions themselves removed from the repository? I do add, push. And unnecessary files are still in the repository. Although the new ones are already being ignored.
Or just recreate?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2021-07-07
@LoliDeveloper

Remove files from gitignor, remove files from the repository, for example, via `git rm`, push to the repository.
Then restore gitignor and files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question