The minimal git workflow#
The whole workflow#
Fig. 1 The git workflow I used in my research [1]. This workflow consists of the following three parts.#
Feature branch#
Fig. 2 Create a branch. Create a branch my-feature when you need to make a change; Make changes in this branch you just created; then commit them; Push the commits to Github.#
Pull request#
Fig. 3 Make a pull request. Push the commit to the remote; create a pull request from my-feature to main; on your local machine, switch to the main, and pull from the remote main.#
Handle exceptions#
Fig. 4 Handle exceptions.#
References#
[1] “十分钟学会正确的github工作流,和开源作者们使用同一套流程” YouTube, uploaded by 码农高天, April 13, 2024, https://youtu.be/uj8hjLyEBmU?si=S29XiEkhG3of9y83
[2] “Introduction to version control with Git/Recording changes” CodeRefinery, Mar 31, 2025, https://coderefinery.github.io/git-intro/commits/