Running Commands with Contexts
The final step your Go CI has to perform is pushing code changes to the remote Git repository. For this step, you’ll use some concepts from the Git Version Control System, such as, commits, local and remote repositories, branches, and pushing commits to remote repositories. If you need more information about these concepts, take a look at Git’s official documentation.[34] If you want to try this tool locally, you’ll also need Git installed on your machine.
To push code you’ll add another step to your pipeline to execute the command git with the appropriate options. For now, let’s simplify it and assume that we’re pushing code to the remote repo identified by origin using the branch master. The complete command ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access