commit
9490cf3adf
|
@ -64,12 +64,17 @@ Deletes the branch only if the changes have been pushed and merged with remote.
|
||||||
git branch -D $branchname
|
git branch -D $branchname
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete a branch irrespective of its merged status.
|
```bash
|
||||||
|
git branch -d $branchname
|
||||||
|
```
|
||||||
|
|
||||||
|
> Note: You can also use the -D flag which is synonymous with --delete --force instead of -d. This will delete the branch regardless of its merge status.
|
||||||
|
> Delete a branch irrespective of its merged status.
|
||||||
|
|
||||||
### Delete remote branch
|
### Delete remote branch
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git push origin :$branchname
|
git push origin --delete :$branchname
|
||||||
```
|
```
|
||||||
|
|
||||||
Works for tags, too!
|
Works for tags, too!
|
||||||
|
|
Loading…
Reference in New Issue