freeCodeCamp/guide/chinese/miscellaneous/push-a-new-local-branch-to-.../index.md

11 lines
389 B
Markdown
Raw Normal View History

---
title: Push a New Local Branch to a Remote Git Repository and Track it Too
localeTitle: 将新的本地分支推送到远程Git存储库并跟踪它
---
1. 创建一个新分支:
`git checkout -b feature_branch_name`
2. 编辑,添加和提交您的文件。
3. 将您的分支推送到远程存储库:
`git push -u origin feature_branch_name`
_就这么简单_