Which branch does gitlab CI checkout?

How do I get the lab CI determines which version of git should be checked out? As far as I can tell, this information is not included, we are creating the build in gitlab CI.

Likewise, how does it determine which branch to checkout?

+3


source to share


1 answer


When you create a project with GitLab CI , you must mention " " default_ref

default_ref (optional)

      



Branch to run (default for master)

GitLab CI will checkout from this branch and run the construct script anytime new commits are found.

+2


source







All Articles