Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ch0wn
on March 24, 2011
|
parent
|
context
|
favorite
| on:
Play Git Like A Violin
This one is pretty neat: "git commit -a --amend -C HEAD" Happens to me all the time I forgot to stage a certain file or made a small typo.
adimitrov
on March 24, 2011
|
next
[–]
You don't really need '-C HEAD' at all. The default behavior is to just reuse the last commit message, which is, implicitly, HEAD.
cmurphycode
on March 24, 2011
|
parent
|
next
[–]
That doesn't work for me. git commit -a --amend prompts for commit message in $editor git commit -a --amend -C complains about lack of input
Maybe this is a git version specific thing.
Estragon
on March 24, 2011
|
prev
|
next
[–]
Is there a way to do that in hg?
Peaker
on March 24, 2011
|
prev
[–]
git commit --amend -aCHEAD
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: