If a project ist configured to spawn CI runners for tests or deployment when pushing to the Repo, a habit of pushing WIP commits regularly may conflict with that.
Here are two solutions that allow you to keep pushing whenever you feel like it.
To skip a CI run, simply add [ci skip]
or [skip ci]
to your commit message. Example:
git commit -m "wip authentication [ci skip]"
In addition to that, GitLab CI supports Git push options. Instead of changing your commit message, specify the ci.skip
option when pushing. Note that this does not skip Merge Request pipelines. Example:
git commit -m "wip authentication"
git push -o ci.skip # Does not skip Merge Request pipelines