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

389 B

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

就这么简单!