Skip to content

Commit 8df18f5

Browse files
committed
feat(gitutils): ✨ add commands to delete tags and fix up commits
1 parent 1cd2422 commit 8df18f5

3 files changed

Lines changed: 9 additions & 43 deletions

File tree

src/gitutils/_movetags.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/gitutils/alias.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"cmd": "git checkout -- . && git rebase --continue",
2424
"help": "Restore all files and continue a rebase."
2525
},
26+
"dt": {
27+
"cmd": "git tag -l \"$1\" | xargs -r -n 1 sh -c 'git push --delete origin \"\\$0\"; git tag -d \"\\$0\"'",
28+
"help": "Delete a tag locally and remotely."
29+
},
2630
"editLast": {
2731
"cmd": "git commit --amend --edit",
2832
"help": "Edit the last commit message and content."
@@ -51,6 +55,10 @@
5155
"cmd": "git log --oneline $(echo $(git rev-parse --abbrev-ref --symbolic-full-name @{u} || git merge-base HEAD develop;git log --merges --first-parent -1 --pretty=%h)| tail -1)..HEAD $*",
5256
"help": "Show commits since last merge or upstream."
5357
},
58+
"fu": {
59+
"cmd": "git fix up",
60+
"help": "Fix up the specified commit with staged changes."
61+
},
5462
"go": {
5563
"cmd": "git commit -m \"$1\" --all",
5664
"help": "Commit all changes with a message."

src/gitutils/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "gitutils",
33
"name": "Git Aliases",
44
"description": "A feature to add useful Git aliases to your shell.",
5-
"version": "5.23.1",
5+
"version": "5.24.0",
66
"dependsOn": {
77
"ghcr.io/devcontainers/features/node:1": "lts",
88
"ghcr.io/tomgrv/devcontainer-features/common-utils:3": {

0 commit comments

Comments
 (0)