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

11 lines
389 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
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`
_就这么简单_