13
I want to ensure that my latest commit has the current date before I push. Since I always rebase to master before a merge + push, I made this alias:
[alias]
sync = !git commit --amend --date=today && git rebase master
Problem is, it keeps launching my text editor asking for a new commit message. Is there a way to have an optional parameter, so that I can choose to use either:
git sync 'my commit message'
or
git sync
where the latter will simply use the existing commit message, whatever it happens to be?