Linux command
fossil-forget 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Forget a file
fossil forget [file]
Forget multiple files
fossil forget [file1] [file2]
Forget with dry run
fossil forget --dry-run [file]
说明
fossil forget removes files from source control but leaves them in the working directory. This is useful when you've added files by mistake and want to untrack them without deleting them. Unlike fossil rm or fossil delete, forgotten files remain on disk untouched. The command only affects the staging area, removing the scheduled addition of files that haven't been committed yet.
参数
- --dry-run
- Show what would be forgotten.
FAQ
What is the fossil-forget command used for?
fossil forget removes files from source control but leaves them in the working directory. This is useful when you've added files by mistake and want to untrack them without deleting them. Unlike fossil rm or fossil delete, forgotten files remain on disk untouched. The command only affects the staging area, removing the scheduled addition of files that haven't been committed yet.
How do I run a basic fossil-forget example?
Run `fossil forget [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --dry-run do in fossil-forget?
Show what would be forgotten.