py-gang / git-workshop

A repo to gain basic git collaboration experience
MIT License
0 stars 0 forks source link

Module 1. Git and collaboration #11

Open OleksiyRudenko opened 5 years ago

OleksiyRudenko commented 5 years ago

Before you take part in a workshop

You may need to refer to materials contained under the links above to complete workshop tasks.

You may need to be a member of this organization to exercise using this repo.

Workshop contents

Do not use Git GUI clients to complete the tasks in this workshop.

If you completing the workshop tasks on your own and cannot complete either of the tasks, please, consult the materials above.

git flow basics

Comprehend the benefits of having master branch for release quality code only, dev branch to aggregate contributions from multiple developers and topic branches (fea-*, fix-*) to scope the ongoing work.

Read this article that will give you ideas on the above.

Coding and initializing a pull request

PR and Merge

Find a peer from among repo members and ask to make a code review. The reviewer will give a positive feedback - both on some text in your file and overall, and will merge the changes into dev.

It is good when someone asks you to make a code review on their PR. Find an open PR and contact the author. Once agreed assign yourself as a Code reviewer (right sidebar of a pull request). Give some positive feedback on their code/text and approve the PR with an overall positive feedback.

Look for examples among closed PRs

Cleaning up and releasing

At the end of Workshop the repo maintainer:

Learnings

Note how entangled history graph is image

In the following modules you will learn some techniques of keeping history linear that is easier to follow.