Skip to content

Commit

Permalink
Merge pull request jlord#145 from Sequoia/master
Browse files Browse the repository at this point in the history
Change delete branch guide to not use "force"
  • Loading branch information
Jessica Lord committed Jan 29, 2015
2 parents 70bdfbc + 6f37b86 commit 6a5d964
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions guide/raw-content-zhtw/11_merge_tada.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>步驟:從本機 <v>Merge</v></h2>
<p><code>$ git merge &#60;BRANCHNAME&#62;</code></p>

<p>整理一下吧,現在把剛剛已經 <v>merged</v><n>feature</n> <n>branch</n> 刪掉。</p>
<p><code>$ git branch -D &#60;BRANCHNAME&#62;</code></p>
<p><code>$ git branch -d &#60;BRANCHNAME&#62;</code></p>

<p>也可以把 <n>branch</n> 從 GitHub 上的 <adj>forked</adj> <n>repository</n> 中刪除哦:</p>
<p><code>$ git push &#60;REMOTENAME&#62; --delete &#60;BRANCHNAME&#62;</code></p>
Expand Down Expand Up @@ -45,7 +45,7 @@ <h2>撇步</h2>
<li><strong>切換正在工作的 <n>branch</n></strong></li>
<code>$ git checkout &#60;BRANCHNAME&#62;</code>
<li><strong>刪除本機的 <n>branch</n></strong></li>
<code>$ git branch -D &#60;BRANCHNAME&#62;</code>
<code>$ git branch -d &#60;BRANCHNAME&#62;</code>
<li><strong>刪除 <n>remote</n> <n>branch</n></strong></li>
<code>$ git push &#60;REMOTENAME&#62; --delete &#60;BRANCHNAME&#62;</code>
<li><strong><n>remote</n> <n>branch</n> <v>Pull</v></strong></li>
Expand Down
4 changes: 2 additions & 2 deletions guide/raw-content/11_merge_tada.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>Step: Merge Locally</h2>
<p><code>$ git merge &#60;BRANCHNAME&#62;</code></p>

<p>Tidy up by deleting your feature branch now that it has been merged.</p>
<p><code>$ git branch -D &#60;BRANCHNAME&#62;</code></p>
<p><code>$ git branch -d &#60;BRANCHNAME&#62;</code></p>

<p>You can also delete the branch from your fork on GitHub:</p>
<p><code>$ git push &#60;REMOTENAME&#62; --delete &#60;BRANCHNAME&#62;</code></p>
Expand Down Expand Up @@ -54,7 +54,7 @@ <h2>Tips</h2>
<li><strong>Change the branch you're working on</strong></li>
<code>$ git checkout &#60;BRANCHNAME&#62;</code>
<li><strong>Delete a local branch</strong></li>
<code>$ git branch -D &#60;BRANCHNAME&#62;</code>
<code>$ git branch -d &#60;BRANCHNAME&#62;</code>
<li><strong>Delete a remote branch</strong></li>
<code>$ git push &#60;REMOTENAME&#62; --delete &#60;BRANCHNAME&#62;</code>
<li><strong>Pull from a remote branch</strong></li>
Expand Down
4 changes: 2 additions & 2 deletions help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

{bold}Delete a local branch{/bold}

$ git branch -D <BRANCHNAME>
$ git branch -d <BRANCHNAME>

{bold}Delete a remote branch{/bold}

Expand Down Expand Up @@ -112,4 +112,4 @@
{bold}Remove (delete) a folder{/bold}

$ rm -rf <FOLDERNAME>


0 comments on commit 6a5d964

Please sign in to comment.