File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,13 +61,15 @@ git diff <commit> <commit> # Show differences between two commits
6161## 6. Working with Branches
6262
6363``` bash
64- git branch # List branches
65- git branch < name> # Create new branch
66- git checkout < name> # Switch to branch
67- git checkout -b < name> # Create and switch to branch
68- git merge < name> # Merge branch into current
69- git branch -d < name> # Delete a branch
70- git branch -m < old> < new> # Rename a branch
64+ git branch # List branches
65+ git branch < name> # Create new branch
66+ git checkout < name> # Switch to branch
67+ git checkout -b < name> # Create and switch to branch
68+ git merge < name> # Merge branch into current
69+ git branch -d < name> # Delete a branch
70+ git branch -D < name> # Delete (forced) a branch
71+ git branch -m < old> < new> # Rename a branch
72+ git push origin --delete < name> # Delete remote branch
7173```
7274
7375---
@@ -227,4 +229,4 @@ The `-u` flag in `git push -u origin my-feature` sets up tracking so future `git
227229---
228230
229231** Tip:**
230- Use ` git help < command> ` for detailed info about any command!
232+ Use ` git help < command> ` for detailed info about any command!
You can’t perform that action at this time.
0 commit comments