how to ignore a file thats checked in
Martin Steigerwald
Martin at lichtvoll.de
Tue Sep 6 13:11:34 UTC 2011
Am Dienstag, 6. September 2011 schrieb Martin Steigerwald:
> Hi!
>
> I wish to have a file in my bazaar branch that is changes my network
> manager, cause I like to record my home default configuration of it.
>
> But I like to ignore any automatic changes. Thus I thought I bzr ignore
> it, but bzr ignore doesn't seem to let me ignore file that are still in
> the branch. Why?
>
> Can bzr be told to ignore is *nonetheless* instead of insisting that it
> knows better whats good for me?
>
>
> merkaba:/etc> bzr ignore resolv.conf
> Warning: the following files are version controlled and match your
> ignore pattern:
> resolv.conf
> These files will continue to be version controlled unless you 'bzr
> remove' them.
Hmmm, with explicetely specifying root directory aka
merkaba:/etc> bzr uncommit
94 Martin Steigerwald 2011-09-06
Kleiner Test. Wieder hinzu.
The above revision(s) will be removed.
Uncommit these revisions? [y/n]: y
You can restore the old tip by running:
bzr pull . -r revid:martin at lichtvoll.de-20110906130847-4yqb3z7jswu0ay7d
merkaba:/etc> bzr commit -m "Mit /resolv.conf gehts offenbar."
Committing to: /etc/
added .bzrignore
added resolv.conf
Committed revision 94.
merkaba:/etc> bzr diff
this appears to work.
Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
More information about the bazaar
mailing list