Skip to content

Commit 009945f

Browse files
authored
Merge pull request #9 from dlealv/update-git-basics.md
Update git-basics.md
2 parents 6110e53 + 1b4686f commit 009945f

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

docs/git-basics.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff 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!

0 commit comments

Comments
 (0)