Full Git Tutorial (Part 6) - Pull Requests & Code Reviews

Publicado el: 01 septiembre 2020
en el canal de: Ben Kadel
26,092
569

Twitter:   / ben_kadel  
Github: https://github.com/kardelio

PART 6 of my Git Tutorial Series... (More videos to come in the future)

This is the SIXTH video in a series of videos on Git, the fifth video can be found here:
   • Full Git Tutorial (Part 5) - Fetch & ...  
And the Playlist itself is here:
   • Full Git Tutorial (Part 1) - Introduc...  

In this particular video (Part 6) I explain about how a any contributor to a codebase SHOULD integrate their new bug fix or feature code into the "main" production code (usually the master branch). Users should NEVER push their changes directly to the master branch, and infact usually their are security measures in place on the online git repositories providers (like Github, Bitbucket & Gitlab) to stop direct master pushes, instead users should work on a separate branch and use a feature called a PULL REQUEST to ask for their code changes to be brought into the master branch (or the specified destination branch).

The Pull Request feature/capability is something that is carried out on the website of your specified online git repo provider and is incredibly simple to do. The code author creates said pull request with a brief message about what their code achieves and then the pull request can be used by other members of the team or project to "Review the code" before it is accepted into that all important master/production branch. This checking process is called a CODE REVIEW.

Code reviews are "as-it-says-on-the-tin" another member of your team, literally looking at the code you have submitted in your Pull Request and checking it for anything that might stop it from being successful code or successfully being part of the destination branch. The code review is made possible because of the visually easy to understand CODE DIFFS that are provided by the online git repo provider (Github/Bitbucket etc...). These code diffs enable someone else to quickly and efficiently see all the differences that your branch will bring. Allowing for quick feedback and hopefully approval of the pull request.

Pull requests and Code reviews are something that all software development teams (that collaborate on a single codebase) do or very much should do. It is a way of adding safety to the code integration process and of course lets other devs on the team keep up-to-date on what is changing over time in the code. It is an incredibly important process and should never be skipped! Plus a code review is a really nice way of learning where your code could be made better as a by-product!

There are no new terminal commands in this video, instead all of the action is happening within the web browser, on our selected online git repo provider; Github.com

Timestamps ======================

00:00 - Intro
01:54 - Getting code into master
02:28 - Code Review
03:05 - Pull Request
04:49 - Visual example
05:31 - Code review importance
05:55 - Pull request demo
09:47 - Code Diffs
12:28 - Approving a PR
14:54 - Forking & collaborators
16:29 - Outro
17:00 - Bloopers

Links ======================

The Git Series repository on Github:
https://github.com/Kardelio/git_series

What is a Pull Request:
http://oss-watch.ac.uk/resources/pull...
https://docs.github.com/en/github/col...
https://www.atlassian.com/git/tutoria...

What is a code review:
https://www.atlassian.com/agile/softw...
https://smartbear.com/learn/code-revi...

Code review best practices:
  / code-review-best-practices  

Link to find git downloads and install...
https://git-scm.com/downloads

Some more awesome links to help you on your git journey...
https://rogerdudler.github.io/git-guide/
https://learngitbranching.js.org/
http://git-school.github.io/visualizi...
https://guides.github.com/introductio...

-------------------------------------
Tools:
-------------------------------------
Video Editing: https://www.blackmagicdesign.com/prod...
Image Editing: https://www.gimp.org/
Camera: Canon M50

-------------------------------------
Credits:
-------------------------------------
Intro Card Music: https://www.purple-planet.com
Sound-Effects: http://soundbible.com/
In Video Background: Photo by Adrien Olichon from Pexels
Thumbnail Background: Pexels.com (No Attribution Required)

Vid: 38

#git #tutorial #terminal


En esta página del sitio puede ver el video en línea Full Git Tutorial (Part 6) - Pull Requests & Code Reviews de Duración hora minuto segunda en buena calidad , que subió el usuario Ben Kadel 01 septiembre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 26,092 veces y le gustó 569 a los espectadores. Disfruta viendo!