Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to prompt to amend commit message only #988

Open
jasonruesch opened this issue Nov 14, 2023 · 0 comments
Open

Provide a way to prompt to amend commit message only #988

jasonruesch opened this issue Nov 14, 2023 · 0 comments

Comments

@jasonruesch
Copy link

There should be a way to prompt when there are no staged or changed files, but the commit message needs to be amended and still conform to the conventions.

git commit --amend

With no files changed or staged, the amend commit command currently displays the message, "No files added to staging! Did you forget to run git add?" and bypasses the prompt, by design per #7.

I contend that there are reasons to prompt just to fix the commit message without file changes.

@jasonruesch jasonruesch changed the title Provide a way to prompt to amend commit message only without Provide a way to prompt to amend commit message only Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant