the development workflow of git github for beginners

26
The development workflow of Git / Github - for Beginners By Gunjan Patel

Upload: gunjan-patel

Post on 23-Jan-2018

1.637 views

Category:

Software


0 download

TRANSCRIPT

Page 1: The development workflow of git github for beginners

The development workflow of Git / Github- for Beginners

By Gunjan Patel

Page 2: The development workflow of git github for beginners

Namaste

Page 3: The development workflow of git github for beginners

Who am I?

Gunjan Patel

Working at redWEB

7 years of experience in Web!

Joomla! Bug Squad Member

Joomla! SQL Optimisation team co-ordinator

JUG Ahmedabad Manager

Page 4: The development workflow of git github for beginners

”Joomlers

Page 5: The development workflow of git github for beginners

First Lego

Page 6: The development workflow of git github for beginners

My Vision for J!Community

Page 7: The development workflow of git github for beginners

Why Git?

• Simple

• Fast (save time)

• No central repository (work offline)

• Easy reverts

• Branching make life easier

• Ideal for development in team

Introduction

Page 8: The development workflow of git github for beginners

The Development Workflow

Introduction

Page 9: The development workflow of git github for beginners

Official Joomla! Repo

joomla/joomla-cms

Your Forked Repo

gunjanpatel/joomla-cms

Page 10: The development workflow of git github for beginners

What is fork?

• Create a fork on Github/Bitbucket/Gitlab etc...

• Clone the forked repository your local system.

• Modify the local repository.

• Commit your changes.

• Push changes back to the remote fork.

• Create a pull request from the forked repository (source) back to the original (destination).

Introduction

fork is just another way of saying clone

Page 11: The development workflow of git github for beginners

Official Joomla! Repo

joomla/joomla-cms

Your Forked Repo

gunjanpatel/joomla-cms

Local Repo<local_path>/joomla

-cms

Local Path Example: /var/www/git/joomla-cms

Page 12: The development workflow of git github for beginners

Branching Model

Introduction

Page 13: The development workflow of git github for beginners

Official Joomla! Repo

joomla/joomla-cms

Your Forked Repo

gunjanpatel/joomla-cms

Local Repo<local_path>/joomla

-cms

Local Path Example: /var/www/git/joomla-cms

Page 14: The development workflow of git github for beginners
Page 15: The development workflow of git github for beginners

Official Joomla! Repo

joomla/joomla-cms

Your Forked Repo

gunjanpatel/joomla-cms

Local Repo<local_path>/joomla

-cms

Local Path Example: /var/www/git/joomla-cms

Page 16: The development workflow of git github for beginners

Using Git Commands

Page 17: The development workflow of git github for beginners

Clone your forked repository in local

Page 18: The development workflow of git github for beginners

Configure Remote

Page 19: The development workflow of git github for beginners

Fetch Changes

Page 20: The development workflow of git github for beginners

Create and Configure Branch

Page 21: The development workflow of git github for beginners

Or Update Existing Branch

Page 22: The development workflow of git github for beginners

Commit Branch

Page 23: The development workflow of git github for beginners

push Changes to origin (Not remote)

Page 24: The development workflow of git github for beginners

Go to your client GitHub / Bitbucket / GitLab or similar and send Pull Request to remoterepository.

Page 25: The development workflow of git github for beginners

?? ? ??

Questions

Page 26: The development workflow of git github for beginners

Thank You

@ergunjanpatel