Re: file is showing as modified even that it was never commited

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Ewa!

This might be the fix for you:

A `gitignore` file ensures that certain file(s) which are not
tracked by Git remain untracked.  However, sometimes particular
file(s) may have been tracked before adding them into the
`.gitignore`, hence they still remain tracked.  To untrack and
ignore files/patterns, use `git rm --cached <file/pattern>`
and add a pattern to `.gitignore` that matches the <file>.

Most probably the '.idea' folder might have been tracked before adding
it to the '.gitignore' and hence it shows up in the staging area (i.e.,
when you run a `git status`, it shows up as modified).

If there is a doubt still, feel free to drop a message here :)

Regards,
Shourya Shukla




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux