know the science behind workflows using git github

30
Know The Science Behind WorkFlows Using Git and GitHub

Upload: edureka

Post on 13-Apr-2017

718 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Know the science behind workflows using Git GitHub

Know The Science Behind WorkFlows Using Git and GitHub

Page 2: Know the science behind workflows using Git GitHub

Slide 2 www.edureka.co/git-github

Objectives

® Overview of Version Control and Git® Introduction to GitHub® What are Git branches and Use cases® How Workflows help and Use cases® Introduction of Tools like GitHub Desktop for Code Reviews

At the end of the session you will know

Page 3: Know the science behind workflows using Git GitHub

Slide 3 www.edureka.co/git-githubSlide 3

Introduction to Git

WorkFlows

Page 4: Know the science behind workflows using Git GitHub

Slide 4 www.edureka.co/git-githubSlide 4

Job Trends

Git & GitHub are having high demand in the Industry

Page 5: Know the science behind workflows using Git GitHub

Slide 5 www.edureka.co/git-githubSlide 5

Google Trends Comparison

Search volume on Google

Page 6: Know the science behind workflows using Git GitHub

Slide 6 www.edureka.co/git-githubSlide 6

Version Control and Git

Keep every version of your file• It allows you to revert files back to a previous state• Revert the entire project back to a previous state• Compare changes over time• See who last modified something that might be causing a problem• Who introduced an issue and when. • If you lose files, you can easily recover.

Page 7: Know the science behind workflows using Git GitHub

Slide 7 www.edureka.co/git-githubSlide 7

What is Git?

Git was initially designed and developed for Linux kernel development in 2005 With Git, nearly all operations are performed locally, giving it a huge speed advantage on

centralized systems that constantly have to communicate with a server somewhere. Git effectively handles large repositories. Speed and performance have been its primary

design goal. The size of the data on the client side is very similar even though Git also has every version of

every file for the entire history of the project.

Git is a Distributed revision control systemSpeed, Data integrity and support for distributed, non-linear

workflows.

Page 8: Know the science behind workflows using Git GitHub

Slide 8 www.edureka.co/git-githubSlide 8

Git FeaturesFree Distributed version control

systems

Every Git working directory is a full-fledged repository with

complete history

Full version-tracking capabilities

Independent of network access or a central server

Fast performance and Scalable

Rich command set that provides both high-level

operations and full access to internals

Page 9: Know the science behind workflows using Git GitHub

Slide 9 www.edureka.co/git-githubSlide 9

Use Case - Role Based Code Lines

Have a branch that always

contains only what goes to production

Another that you merge work into

for testing

And several smaller ones for day to day work

Page 10: Know the science behind workflows using Git GitHub

Slide 10 www.edureka.co/git-githubSlide 10

Use Case - Feature Based Workflow

Create new branches for each new feature you're working on so you can seamlessly

switch back and forth between them.

Then you can delete each branch when that feature gets merged into your

main line.

Page 11: Know the science behind workflows using Git GitHub

Slide 11 www.edureka.co/git-githubSlide 11

Use Case - Parallel

Page 12: Know the science behind workflows using Git GitHub

Slide 12 www.edureka.co/git-githubSlide 12

Use Case - Independent

Page 13: Know the science behind workflows using Git GitHub

Slide 13 www.edureka.co/git-githubSlide 13

Use Case - Dummy projects

Frictionless Context Switching. Create a branch to try out an idea, commit a few times, switch back to where you branched from, apply a patch, switch back to where you are experimenting, and merge it in.

Page 14: Know the science behind workflows using Git GitHub

Slide 14 www.edureka.co/git-githubSlide 14

Use Case - Release blocks work on Main branch

Page 15: Know the science behind workflows using Git GitHub

Slide 15 www.edureka.co/git-githubSlide 15

Use Case - Repository

Repository – Needed for backup, restore and fault

tolerant

Page 16: Know the science behind workflows using Git GitHub

Slide 16 www.edureka.co/git-githubSlide 16

Use Case - Take your time

Page 17: Know the science behind workflows using Git GitHub

Slide 17 www.edureka.co/git-githubSlide 17

Use Case - Offline

Page 18: Know the science behind workflows using Git GitHub

Slide 18 www.edureka.co/git-githubSlide 18

Use Case - Testing

Page 19: Know the science behind workflows using Git GitHub

Slide 19 www.edureka.co/git-githubSlide 19

Use Case - Training

Page 20: Know the science behind workflows using Git GitHub

Slide 20 www.edureka.co/git-githubSlide 20

Use Case - Inexpensive to Discard

Disposable Experimentation. Create a branch to experiment in, realize it's not going to work, and just delete it -abandoning the work—with nobody else ever seeing it (even if you've pushed other branches in the meantime).

Page 21: Know the science behind workflows using Git GitHub

Slide 21 www.edureka.co/git-githubSlide 21

Git Staging Area

Page 22: Know the science behind workflows using Git GitHub

Slide 22 www.edureka.co/git-githubSlide 22

What is Github

GitHub is a Web-based Git repository hosting service

Distributed revision control and source code management (SCM) functionality

Web-based graphical interface and desktop as well as mobile Integration, Access control

Collaboration features such as bug tracking, feature requests, task management, and wikis for every project

Page 23: Know the science behind workflows using Git GitHub

Slide 23 www.edureka.co/git-githubSlide 23

GitHub Flows

Page 24: Know the science behind workflows using Git GitHub

Slide 24 www.edureka.co/git-githubSlide 24

GitHub Branches

Page 25: Know the science behind workflows using Git GitHub

Slide 25 www.edureka.co/git-github

DEMO

Page 26: Know the science behind workflows using Git GitHub

Slide 26 www.edureka.co/git-githubSlide 26

Code review on GitHub Desktop

Page 27: Know the science behind workflows using Git GitHub

Slide 27 www.edureka.co/git-githubSlide 27

Branch Diagram

Page 28: Know the science behind workflows using Git GitHub

Slide 28 www.edureka.co/git-githubSlide 28

GitFlow WorkFlow

Page 29: Know the science behind workflows using Git GitHub

Slide 29 www.edureka.co/git-github

Questions

Page 30: Know the science behind workflows using Git GitHub

Slide 30 www.edureka.co/git-github