'forget' the recently added files

Joris Putcuyps joris.putcuyps at skynet.be
Thu May 25 17:06:05 BST 2006


Aaron Bentley wrote:
> Joris Putcuyps wrote:
>>> Hello everybody
>>>
>>> After issuing the 'add' command, I sometimes notice files were added
>>> which were hidden from me.
>>> How do I forget those files, without using the 'remove' on each file?
> 
> If you haven't made any other changes, you can use 'revert'.
> 
> To reduce the risk of accidental adds, you can specify particular
> subdirectories, or particular files.
> 
> Perhaps we should add a '--new' option to remove that would cause it to
> remove all newly-added files.
> 
> Aaron
In the past I've used the revert, but, I think it was with an older
version, this resulted in lost files ( bzr init, bzr add, oops.. wrong
files, bzr revert, no more files :( )
I don't know if it's with mercurial or another VCS which had the command
 'forget' to undo the 'add'.

Joris





More information about the bazaar mailing list