Hacker News new | past | comments | ask | show | jobs | submit login

Thanks, that last entry gave me a good chuckle. I wasn’t aware of the -—no-edit flag when performing an amend. Learned something new.



Huh. Neither was I. I've been using -C HEAD which has the same affect (reusing the commit from the branch head) but --no-edit makes it more obvious what's going on...sort of. It's still not clear what isn't being edited.


What are the options for what could be the target? Or I guess in this case, what isn't the target.


Do you mean the target of the editing? It could also be the commit author or committee perhaps. Maybe the message is the only logical choice, but for long flags, I think more explicit is still better.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: