3 ms·
I wish there were a shorthand for x git commit --amend --reset-author --no-edit I use that one very frequently (after a fixup, of course) because I want the
by TazeTSchnitzel 2mo ago
I wish there were a shorthand for
x git commit --amend --reset-author --no-edit
I use that one very frequently (after a fixup, of course) because I want the author date on amended commits to reflect the last time I edited them, not the first time I committed them.
- throw-the-towel 2mo agoBut you can make your own alias? > git config --global alias.whatever_you_want 'commit --amend --reset-author --no-edit' https://git-scm.com/book/ms/v2/Git-Basics-Git-Aliases https://git-scm.com/book/ms/v2/Git-Basics-Git-Aliases
- deleted 2mo ago[deleted]
- whateveracct 2mo agoi edit my commit dates constantly for various reasons get ahead at work? split into commits and make it look like multiple days of work work on your own IP during work hours? edit the timestamp to be outside work hours (i even have a script for this)
- deleted 2mo ago[deleted]