Step 2. Create a Branch

Branchingis the way to work on different versions of a repository at one time.

By default your repository has one branch namedmasterwhich is considered to be the definitive branch. We use branches to experiment and make edits before committing them tomaster.

This diagram shows:

The master branch

A new branch called feature (because we’re doing ‘feature work’ on this branch)

The journey that feature takes before it’s merged into master

Have you ever saved different versions of a file? Something like:

story.txt

story-joe-edit.txt

story-joe-edit-reviewed.txt

Branches accomplish similar goals in GitHub repositories.

Here at GitHub, our developers, writers, and designers use branches for keeping bug fixes and feature work separate from ourmaster(production) branch. When a change is ready, they merge their branch into master.

Step:

1.Go to your new repositoryhello-world.

2.Click the drop down at the top of the file list that saysbranch: master.

3.Type a branch name,readme-edits, into the new branch text box.

4.Select the blueCreate branchbox or hit “Enter” on your keyboard.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,240評論 0 23
  • origin websiteComparing WorkflowsCentralized Workflow Fea...
    伍帆閱讀 576評論 0 0
  • 你就要走了,想想也還是充滿了一些悲傷啊,也許我們就是有緣無分啊,心里不知道現(xiàn)在為何如何聒噪啊,跟隨自己得心里啊,我...
    你不應(yīng)該太帥啊閱讀 236評論 0 0
  • 默小小忘了怎么回到租的小窩,怎么刷牙洗澡,怎么地一遍遍努力入睡,總之那一宿,她睡了醒,醒了睡,似睡非睡,似...
    mo慢慢閱讀 190評論 0 0
  • 一群人是狂歡 一個人是孤單 但一群人也是孤單 一個人也是狂歡 世界 需要一群人 但到了最后 還是一個人
    徐徐前行閱讀 380評論 3 8

友情鏈接更多精彩內(nèi)容