← 返回命令列表

Linux command

bit 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Save changes

bit save

Sync with remote

bit sync

Sync with a specific branch

bit sync origin [master]

Switch to a branch

bit switch [branch-name]

Interactive checkout

bit checkout

Add files

bit add

Commit with a message

bit commit -m "[message]"

说明

bit is a modern Git CLI wrapper that provides simplified commands, intelligent defaults, and interactive prompts. It's built on top of git and maintains full compatibility with standard git commands. The tool reduces common git workflows to simpler commands while providing suggestions, autocompletion for files and branches, and automatic fetch/fast-forwarding to reduce merge conflicts.

参数

-m _message_
Commit message (with bit commit)
-a
Stage all modified files
--amend
Amend the previous commit
-r
Rebase when pulling

FAQ

What is the bit command used for?

bit is a modern Git CLI wrapper that provides simplified commands, intelligent defaults, and interactive prompts. It's built on top of git and maintains full compatibility with standard git commands. The tool reduces common git workflows to simpler commands while providing suggestions, autocompletion for files and branches, and automatic fetch/fast-forwarding to reduce merge conflicts.

How do I run a basic bit example?

Run `bit save` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -m _message_ do in bit?

Commit message (with bit commit)