Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Mike Gerwitz (mikegerwitz@social.mikegerwitz.com)'s status on Wednesday, 18-Oct-2017 02:40:03 EDT Mike Gerwitz Mike Gerwitz
    The number of times I get screwed when signing #Git commits by either entering my smartcard PIN incorrectly or forgetting I changed it... On failure, Git aborts entirely. If you write detailed changelog-style commits like me (which can take a decent amount of time to write), you'll get a heart-sinking feeling when you go to commit again and find that your commit message wasn't retained.

    So any time there's a failure, I immediately back up the contents of .git/COMMIT_EDITMSG, where the last message was stored. You will lose it if you try to commit again before this. You can also use `git commit -F .git/COMMIT_EDITMSG`, but note that comment lines aren't removed then, so you'll probably want to edit it before or amend after.

    This is something I've been doing since I first learned Git, but hopefully the tip's helpful to someone.
    In conversation Wednesday, 18-Oct-2017 02:40:03 EDT from social.mikegerwitz.com permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.