Confirmed users
3,816
edits
No edit summary |
|||
Line 103: | Line 103: | ||
git checkout master // Assuming you created this branch from master | git checkout master // Assuming you created this branch from master | ||
git branch -d myfeature // Deletes the branch | git branch -d myfeature // Deletes the branch | ||
</pre> | |||
Now, if the branch was pushed to your github repo, we add another step. | |||
<pre> | |||
git checkout master // Assuming you created this branch from master | |||
git push origin :myfeature // Removes the branch from github | |||
git branch -d myfeature // Deletes the local branch | |||
</pre> | </pre> | ||