From: Raza Ali <rali@ebi.ac.uk>
To: git@vger.kernel.org
Subject: re-ignoring a force added file
Date: Tue, 13 Aug 2013 19:31:21 +0100 [thread overview]
Message-ID: <520A7B79.4080306@ebi.ac.uk> (raw)
Dear Git Mailing List,
I have force added a file we usually like to ignore (but keep in the
repository). That was a change a while ago, and cannot be undone without
serious pain. I would like to re-ignore the file though, as we dont want
to track changes to it. Some of the options I came across are not useful
for me. For example
git rm --cached FILE // removes the file from the remote repository if I
push, not desirable
git update-index --assume-unchanged //Will ignore changes to the file
locally, but someone else clones and the file is tracked for them.
What we would like is to go back to the old state of affairs: the file
was in the working directory when someone cloned from the remote
repository, but changes to the file werent tracked or committed.
Any help would be appreciated.
regards
Raza
next reply other threads:[~2013-08-13 18:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 18:31 Raza Ali [this message]
2013-08-14 9:22 ` re-ignoring a force added file Thomas Rast
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=520A7B79.4080306@ebi.ac.uk \
--to=rali@ebi.ac.uk \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).