Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit c296899

Browse files
Add bak del and bak down --keep
1 parent 6215f98 commit c296899

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ All of **bak**'s commands will disambiguate between multiple copies of the same
3838

3939
## Additional commands and flags
4040

41-
`bak down --keep my_file` - Restores from .bakfile, does not delete .bakfile
41+
`bak down --keep [N|all] my_file` - Restores from .bakfile, keeping bakfile #N, or all bakfiles
42+
may be invoked more than once
43+
> examples:
44+
45+
bak down --keep all my_file.json // keep all bakfiles
46+
bak down --keep 1 my_file.json // keep bakfile #1
47+
bak down -k 1 -k 4 my_file.json // keep bakfiles #1 and #4
48+
4249
`bak diff my_file` Compare a .bakfile using `diff` (configurable)
4350
`bak list`/`bak list my_file` - List all .bakfiles, or just `my_file`'s
4451
`bak open my_file` View a .bakfile in $PAGER (configurable)
@@ -49,6 +56,7 @@ All of **bak**'s commands will disambiguate between multiple copies of the same
4956
bak open --using cat my_file.json
5057
bak open --in nvim my_file.json
5158

59+
`bak del my_file [N]` Delete a specific .bakfile. If N is provided, deletes `my_file.bak` #N. Otherwise, prompts to disambiguate.
5260
`bak where my_file` Get the abspath of a .bakfile, in case, for some reason, you want to pipe it somewhere
5361

5462
> example (for illustrative purposes; use 'bak diff' instead):

0 commit comments

Comments
 (0)