Sure.
git update-index --assume-unchanged [<file> ...]
To undo and start tracking again:
git update-index --no-assume-unchanged [<file> ...]
More Related Contents:
- Git push error ‘[remote rejected] master -> master (branch is currently checked out)’
- How do I clone a single branch in Git?
- What is the difference between origin and upstream on GitHub?
- What does the git index contain EXACTLY?
- How do I enable the ident string for a Git repository?
- Is it possible for git-merge to ignore line-ending differences?
- How to add Git’s branch name to the commit message?
- Git pre-push hooks
- How to remove sensitive data from a file in github history
- How do I undo ‘git reset’?
- Pull a certain branch from the remote server
- Another git process seems to be running in this repository
- Flexible vs static branching (Git vs Clearcase/Accurev)
- Git submodule url changed
- How do I name and retrieve a Git stash by name?
- Merge development branch with master
- Git branch strategy for small dev team [closed]
- Convert Mercurial project to Git [duplicate]
- Search code inside a Github project
- Why does git sign with GPG keys rather than using SSH keys?
- To use on Visual Studio Code, but show “Could not read from remote repository.”
- What is the file format of a git commit object data structure?
- Definitive retroactive .gitignore (how to make Git completely/retroactively *forget* about a file now in .gitignore)
- How can I make git show a list of the files that are being tracked?
- Is there a way to squash a number of commits non-interactively?
- Can git operate in “silent mode”?
- How do you undo “Discard all changes” in VS Code/Git
- Git remove root commit
- Git rebase –preserve-merges fails
- Cygwin/Git error cygheap base mismatch detected