mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
git-{create-branch, credential}: add Chinese translation (#16199)
* Create git-create-branch.md * Create git-credential.md
This commit is contained in:
parent
3665646b4c
commit
ae363c7b80
2 changed files with 33 additions and 0 deletions
17
pages.zh/common/git-create-branch.md
Normal file
17
pages.zh/common/git-create-branch.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# git create-branch
|
||||
|
||||
> 在 Git 仓库中创建分支。
|
||||
> 属于 `git-extras` 一部分。
|
||||
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-create-branch>.
|
||||
|
||||
- 创建本地分支:
|
||||
|
||||
`git create-branch {{分支名}}`
|
||||
|
||||
- 创建本地分支并推送到 origin 远程:
|
||||
|
||||
`git create-branch --remote {{分支名}}`
|
||||
|
||||
- 创建本地分支并推送到 upstream 远程(常用于 fork 的工作流):
|
||||
|
||||
`git create-branch --remote upstream {{分支名}}`
|
16
pages.zh/common/git-credential.md
Normal file
16
pages.zh/common/git-credential.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# git credential
|
||||
|
||||
> 用于管理和存储 Git 用户凭证(如用户名和密码)。
|
||||
> 更多信息:<https://git-scm.com/docs/git-credential>.
|
||||
|
||||
- 获取凭证信息(从配置文件中读取用户名和密码):
|
||||
|
||||
`echo "{{url=http://example.com}}" | git credential fill`
|
||||
|
||||
- 存储凭证信息(保存到配置的凭证助手中):
|
||||
|
||||
`echo "{{url=http://example.com}}" | git credential approve`
|
||||
|
||||
- 删除凭证信息(从所有配置的凭证助手中清除):
|
||||
|
||||
`echo "{{url=http://example.com}}" | git credential reject`
|
Loading…
Add table
Reference in a new issue