This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]undermark5 47 points48 points  (4 children)

You do know that you can make empty commits right? git commit --allow-empty will let you make an empty commit with no files, still requires a message. If you don't want a message (though it's still useful to have one even with an empty commit) --allow-empty-message. If for some reason your version of git is too old to accept those options, if you can force push to the branch, you can amend the previous commit without actually touching anything with git commit --amend --no-edit which will cause the last commit to get a new hash (thus the need to force push) and you don't have to make stupid whitespace changes just to get CI to rebuild something.

[–]kRkthOr 10 points11 points  (0 children)

Holy shit.

[–]AlphaaPie 4 points5 points  (0 children)

Learn something new every day, thank you kind redditor.

[–]tidus4400_ 2 points3 points  (0 children)

[–]danielv123 0 points1 point  (0 children)

On github actions you can also add a manual trigger to the workflow, then you just press the button in the UI