85.34 Git Workflow with Branches

For any particular task that you will work on, create a new issue and assign it to yourself. Then create a new branch off the main branch giving it a name, for example feature/creep, with:

$ git checkout main 
$ git checkout -b feature/creep

Complete the task, perhaps by writing some code! Once it is completed and tested and ready to merge it back into the main branch, commit and push your work:

$ git commit . -m "Describe your commit briefly." 
$ git push --set-upstream origin feature/creep

Then using the github GUI navigate to your branch and select to create a new pull request. Assign a reviewer and connect your pull request to the issue you’re working on.

Once your pull request has been approved merge your branch into the main branch and delete your branch.



Your donation will support ongoing availability and give you access to the PDF version of the book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.