How to remove a file from GIT tracking?

0 like 0 dislike
7 views
Pro git rm and .gitignor know about git rebase, but it has not yet managed to solve the case.

So. What is the question?

You must delete the file or folder from the tracking (e.g. the master branch) like this would happen in a team
git rm --cache filename
the one exception to the other members when they do
git pull origin master
the file filename was not deleted.
It is very desirable that GIT had forgotten about the fact that this file has ever tracked, in other words to Delta that file is not ranked in the repository and had no references.

I believe that there needs rebase git change commit when the file was added to repository, but until something obvious result is not received.
by | 7 views

3 Answers

0 like 0 dislike
1. Impossible. Only if each before merging'll do git rm --cached file and commit.
2. https://help.github.com/articles/removing-sensitiv...
by
0 like 0 dislike
This file generally should not be turnips.
I do not the config?
by
0 like 0 dislike
No way. To remove a file from the repository with all its history, is impossible without cloning the project from scratch all developers.

That is on one specific repository, you can locally be deleted, but if another developer will just use the git fetch/pull, it does not removed, and the first git push, the story of his repository you will be back.

The only way to the Central repo and remove the file (you can use the library BFG), then ALL the developers, all jobs in teamsite/Jenkins removed the repository and doing git clone. Either launch yourself to the BFG.
by

Related questions

0 like 0 dislike
2 answers
asked Jun 14, 2019 by OrdeO
0 like 0 dislike
6 answers
0 like 0 dislike
1 answer
asked May 11, 2019 by a000_000a
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
asked Apr 24, 2019 by laketych
110,608 questions
257,186 answers
0 comments
33,570 users