.gitignore file got cached

I have problems with my .gitignore file not ignoring directory that I set in it.

on my mac I run:

  • rhc setup - command not found
  • Git pull requests only certain commits on bitbucket
  • get all the commits done by me in the last 5 days in git
  • Getting a gitprompt to run when executing commands
  • Boo to the Chocolatey Gods
  • Interactively merge files tracked with git and untracked local files
    • git status It show long list of files in .idea directory

    new file: .idea/[file name]

    • git config core.excludesfile and It shows me the correct .gitignore file.

    I also been trying to run:

    git rm . -r --cached .

    This is my .gitignore file:


    Any idea what else can I do. I need to perform a commit and I do not want to commit everything.

  • editing git patch gives “Your edited hunk does not apply”
  • Display commiter date in gitk instead of author date
  • How can I transport a Git repo from one PC to another when the files are (probably) current?
  • Splitting a repository with the possibility to later pull changes
  • Designing better git branching model strategy
  • What should be in my .gitignore for an Android Studio project?
  • One Solution collect form web for “.gitignore file got cached”

    In fact you already added those files to git (they are tracked, that’s why git says “new file”. otherwise git would say: “untracked files”.. this does not mean they are committed, but ready to be committed). To untrack them:

    git reset HEAD <file>

    I think the easiest thing for you to is to untrack all files:

    git reset HEAD .

    then add only the files that you will track.

    more info .gitignore works only for files that are not tracked!

    Git Baby is a git and github fan, let's start git clone.