check out the git-update-index man page and the –assume-unchanged bit and related.
when I have your problem I do this
git update-index --assume-unchanged dir-im-removing/
or a specific file
git update-index --assume-unchanged config/database.yml
More Related Contents:
- How do I make Git ignore file mode (chmod) changes?
- How do I configure git to ignore some files locally?
- Git command to show which specific files are ignored by .gitignore
- How to tell git to ignore individual lines, i.e. gitignore for specific lines of code [duplicate]
- Is it possible for git-merge to ignore line-ending differences?
- How to git-svn clone the last n revisions from a Subversion repository?
- How do I tell git-svn about a remote branch created after I fetched the repo?
- How to bridge git to ClearCase?
- What is a Git commit ID?
- Git – Ignore files during merge
- How to remove files that are listed in the .gitignore but still on the repository?
- Why is the meaning of “ours” and “theirs” reversed with git-svn
- How to git ignore subfolders / subdirectories?
- How to send pull request on Git
- What’s the significance of the “No newline at end of file” log?
- git refname ‘origin/master’ is ambiguous
- git-svn: how do I create a new svn branch via git?
- git-svn: what’s the equivalent to `svn switch –relocate`?
- Should I add the Visual Studio 2015 .vs folder to source control?
- gitolite push error -> remote: ENV GL_RC not set
- git merge different repositories?
- git svn workflow – feature branches and merge
- Unable to determine upstream SVN information from HEAD history
- Can Git hook scripts be managed along with the repository?
- What’s the difference between Git Revert, Checkout and Reset?
- Configuring diff tool with .gitconfig
- Windows git “warning: LF will be replaced by CRLF”, is that warning tail backward?
- A way to restrict Git branch access?
- How to point Go module dependency in go.mod to a latest commit in a repo?
- Rolling back a remote Git repository