git assume-unchanged

Today, I encounter a problem, I changed a file just for local test, but when I try to commit my changes, the file will be listed on the…

Today, I encounter a problem, I changed a file just for local test, but when I try to commit my changes, the file will be listed on the changed lists. In order to skip this file when I try to commit changes, I find that assume-unchanged can help me. The command for assume-unchanged is like below:

git update-index — assume-unchanged <filename>