Make an empty commit in Git

Sometimes, when you work on a repository that has CI/CD you don’t have access to rebuild the code since it’s restricted for you as a new developer or team member. However, you might still need to do rebuild to check for failing test that might be happened due to random thing.

If your repository build can be triggered by a commit, then this command can help you to rebuild the code without having access to do it manually.

$ git commit --allow-empty -m "Trigger rebuild"
$ git push

Hope this would be helpful for you. Happy sprinting! 🙂