add new chinese translations
This commit is contained in:
28
pages.zh/linux/legit.md
Normal file
28
pages.zh/linux/legit.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# legit
|
||||
|
||||
> Git的补充命令行接口。
|
||||
> 更多信息:<https://frostming.github.io/legit>。
|
||||
|
||||
- 切换到指定的分支,暂存和恢复未暂存的更改:
|
||||
|
||||
`git switch {{target_branch}}`
|
||||
|
||||
- 同步当前分支,自动合并或变基,并进行暂存和恢复:
|
||||
|
||||
`git sync`
|
||||
|
||||
- 将指定的分支发布到远程服务器:
|
||||
|
||||
`git publish {{branch_name}}`
|
||||
|
||||
- 从远程服务器移除一个分支:
|
||||
|
||||
`git unpublish {{branch_name}}`
|
||||
|
||||
- 列出所有分支及其发布状态:
|
||||
|
||||
`git branches {{glob_pattern}}`
|
||||
|
||||
- 从历史记录中移除最后一个提交:
|
||||
|
||||
`git undo {{--hard}}`
|
Reference in New Issue
Block a user