git update-index –no-assume-unchanged doesn't work

I set the assume-unchanged bit on a couple of files, and now I want to unset them, but that doesn’t work.

> git update-index --no-assume-unchanged Gemfile
> git ls-files -v | grep Gemfile
S Gemfile
S Gemfile.lock
> git status
# On branch foo
nothing to commit (working directory clean)

I have changes in my Gemfile of course. Some of them I don’t want to commit, others I do. And if anyone else changes Gemfile, I can’t merge because of that bit. It really seems to mess a bit too much stuff up.

  • Fetch git notes when cloning
  • Git reset (not hard) then fast forward merging of certain commit
  • How to make a custom merge in multiple branchs?
  • How to add an already existing branch in an already existing Android Repository on Eclipse
  • Git completion and PS1 not working: “__git_ps1: command not found” on “sudo -s” or “sudo su” on Ubuntu 12.04
  • Bitbucket carriage return
  • So I have two questions:

    1: How do I unset the bit?
    2: Is there a better way to ignore one specific local change, while allowing other changes to that file to work normally?

  • How do I safely delete a remote git branch?
  • How would working directory look like in tree diagram?
  • /usr/lib/git-core/git-rebase: 590: cannot open /home/mathieu/dummy/.git/rebase-merge/rewritten: No such file
  • Adding a historical directory to Git branch
  • Show all branches that commit A is on and commit B is not on?
  • RStudio is slow when loading a project / package in development
  • One Solution collect form web for “git update-index –no-assume-unchanged doesn't work”

    A bit late maybe but I was facing the same problem as you and I solved it by using the --really-refresh flag

    like so :

    git update-index  --really-refresh --no-assume-unchanged Gemfile

    Hope this works for you

    Post edit :

    It can be done apparently in 2 steps if you have multiple files

     git update-index  --really-refresh
     git update-index --no-assume-unchanged Gemfile
    Git Baby is a git and github fan, let's start git clone.