Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for amend (`--amend`)

See original GitHub issue

Issue Description

When running git cz --amend I do not get the commitizen prompt, but instead the normal git way of editing message.

It would be awesome if it would show me the commitizen prompt again, especially since I most often use it when I forgot to run git cz.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:13
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

joefraleycommented, Jun 28, 2017

@jimthedev re: workflow

I think @inyono and @Calyhre hit the nail on the head. A common workflow for me is:

$ git commit -m 'trash'
$ git commit -m 'wip'
$ git commit -m 'not working'
$ git commit -m 'almost'
$ git commit -m 'finished, looks good'
$ git rebase -i master

# -----------
# squash everything down to one commit and abandon all the junk messages.
# but i want this first commit to be a commitizen message now...
p 'trash'  
f 'wip'
f 'not working'
f 'almost'
f 'finished, looks good'

# rebase finishes, try to git cz
$ git cz # gonna do a nice message and rebase backwards to keep it

      throw new Error('No files added to staging! Did you forget to run git add?');

Error: No files added to staging! Did you forget to run git add?

$ git cz --amend # the problem as described by @LinusU. doesn't give me a commitizen prompt.

The existing git cz way of doing this would probably be to always git cz your last commit, but I often am not sure which commit will be the last one until after I’ve committed the work and had a look around. It just feels like you have to be really forward thinking to make this work naturally.

Personally, I think git cz --amend-over is a great solution, as long as its well-documented.

Calyhrecommented, Jul 13, 2016

+1 for this option

A use case I just came trough, I made a rebase interactive and I want to amend my awful temporary commit message with git cz.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Amended Return Frequently Asked Questions - IRS
Answers to common questions about amended returns, including filing electronically, processing times, forms and tax years accepted, and checking your ...
Read more >
Support an amendment definition and meaning
Support an amendment definition: An amendment is a section that is added to a law or rule in order to change it. [...]...
Read more >
Rule 15. Amended and Supplemental Pleadings
Second, the right to amend once as a matter of course is no longer terminated by service of a responsive pleading. The responsive...
Read more >
How to File an Amended Tax Return with the IRS - TurboTax
Step 4: Submit your amended forms​​ Attach any necessary supporting documentation, such as: Any new or amended W-2s or 1099 forms. Other forms...
Read more >
Training: Amending an Impact Aid Application
It is possible to submit multiple amendments, but it is best to limit the number as much as possible. If you see the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found