Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git [2024/12/12 17:28] – mgupton | git [2024/12/13 12:37] (current) – [Branches] mgupton | ||
|---|---|---|---|
| Line 124: | Line 124: | ||
| * Checkout the branch the new branch is based on | * Checkout the branch the new branch is based on | ||
| * Then create branch | * Then create branch | ||
| - | < | + | < |
| git branch <new branch name> | git branch <new branch name> | ||
| </ | </ | ||
| Line 136: | Line 136: | ||
| * Then delete the local branch | * Then delete the local branch | ||
| <code bash> | <code bash> | ||
| - | git push -d < | + | git push -d < |
| - | git branch -d <branchname> | + | git branch -d <branch name> |
| + | </ | ||
| + | |||
| + | To force delete an unmerged branch | ||
| + | <code bash> | ||
| + | git branch -D <branch name> | ||
| </ | </ | ||