1
0
Fork 0
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:
Ziqiang Wu 2025-04-25 16:31:03 +08:00 committed by GitHub
parent 3665646b4c
commit ae363c7b80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 0 deletions

View 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 {{分支名}}`

View 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`