Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] zh-cn document translate: git parts #15576

Merged
merged 5 commits into from
Apr 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update docs/zh-cn/newbs_git_using_your_master_branch.md
Co-authored-by: peepeetee <[email protected]>
  • Loading branch information
epiciskandar and peepeetee committed Feb 2, 2022
commit 29fca13a3151d4fce9b49e659ae0c795b66ff295
2 changes: 1 addition & 1 deletion docs/zh-cn/newbs_git_using_your_master_branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ git checkout -b dev_branch
git push --set-upstream origin dev_branch
```

以上操作会创建 `dev_branch` 新分支,检出(check out)并保存到你的for中。`--set-upstream` 参数用于告知git使用你的for仓库来处理 `dev_branch` 分支下的 `git push` 及 `git pull` 命令,且仅需要在第一次执行push命令时指定,之后再次执行 `git push` 或是 `git pull` 都无需加入该参数了。
以上操作会创建 `dev_branch` 新分支,检出(check out)并保存到你的fork中。`--set-upstream` 参数用于告知git使用你的fork仓库来处理 `dev_branch` 分支下的 `git push` 及 `git pull` 命令,且仅需要在第一次执行push命令时指定,之后再次执行 `git push` 或是 `git pull` 都无需加入该参数了。

?> 在 `git push` 时,可以使用 `-u` 替代 `--set-upstram` &mdash; `-u` 为 `--set-upsream` 参数的别名。

Expand Down