mirror of
https://github.com/cupcakearmy/memoir.git
synced 2026-04-06 21:59:23 +00:00
update deps & add cleanup of local brnaches
This commit is contained in:
28
content/git/clean-local-branches.md
Normal file
28
content/git/clean-local-branches.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
tags:
|
||||||
|
- git
|
||||||
|
- branch
|
||||||
|
- clean
|
||||||
|
- delete
|
||||||
|
---
|
||||||
|
# Clean up local branches
|
||||||
|
|
||||||
|
## Delete all local branches that are already merged.
|
||||||
|
|
||||||
|
This command is useful if you have a buch of local branches that you don't need anymore.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git branch --merged | grep -v \* | xargs git branch -D
|
||||||
|
```
|
||||||
|
|
||||||
|
[Original SO Link](https://stackoverflow.com/a/10610669)
|
||||||
|
|
||||||
|
## Delete all other local branches
|
||||||
|
|
||||||
|
This command will delete all local branches except the one you are currently on.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git branch | grep -v "$(git rev-parse --abbrev-ref HEAD)" | xargs git branch -D
|
||||||
|
```
|
||||||
|
|
||||||
|
[Source](https://dev.to/vineethtrv/how-to-delete-all-local-git-branches-except-the-current-one-5dcb)
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
tags:
|
|
||||||
- git
|
|
||||||
- branch
|
|
||||||
- clean
|
|
||||||
- delete
|
|
||||||
---
|
|
||||||
|
|
||||||
# Delete all local branches that are already merged.
|
|
||||||
|
|
||||||
This command is useful if you have a buch of local branches that you don't need anymore.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git branch --merged | grep -v \* | xargs git branch -D
|
|
||||||
```
|
|
||||||
|
|
||||||
[Original SO Link](https://stackoverflow.com/a/10610669)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
10
package.json
10
package.json
@@ -6,11 +6,11 @@
|
|||||||
"postbuild": "pagefind --site .next/server/app --output-path public/_pagefind"
|
"postbuild": "pagefind --site .next/server/app --output-path public/_pagefind"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^15.5.7",
|
"next": "^15.5.14",
|
||||||
"nextra": "^4.4.0",
|
"nextra": "^4.6.1",
|
||||||
"nextra-theme-docs": "^4.4.0",
|
"nextra-theme-docs": "^4.6.1",
|
||||||
"react": "^19.1.1",
|
"react": "^19.2.4",
|
||||||
"react-dom": "^19.1.1"
|
"react-dom": "^19.2.4"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.15.1",
|
"packageManager": "pnpm@10.15.1",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
1327
pnpm-lock.yaml
generated
1327
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user