My custom slash command for better git commit #975
yingmanwumen
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
@yingmanwumen love this and thanks for sharing! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can we make it a code action for git commit? @olimorris |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
And it looks like this:
Me
@cmd_runner
commitizen convention
.gitcommit
git commit -F- <<EOF
.Git Diff
== Unstaged Changes Start(
git diff
) ==== Unstaged Changes End(
git diff
) ==Copilot(claude-3.5-sonnet)
I'll help you create a commit message following the Commitizen convention and then create a commit with the staged changes.
Let's analyze the changes:
Here's the commit message in the Commitizen format:
Now, I'll execute the commands to stage and commit these changes.
I would use the cmd_runner to stage the changes and create the commit:
Me
The output from the command
git add 800/2060A/main.hs
:The output from the command `git commit -F- <<EOF
refactor(codeforces): simplify solution for 2060A
The solution for problem 2060A has been simplified by:
EOF`:
Beta Was this translation helpful? Give feedback.
All reactions