the development workflow of git github for beginners

Post on 23-Jan-2018

1.638 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

The development workflow of Git / Github- for Beginners

By Gunjan Patel

Namaste

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

”Joomlers

First Lego

My Vision for J!Community

Why Git?

• Simple

• Fast (save time)

• No central repository (work offline)

• Easy reverts

• Branching make life easier

• Ideal for development in team

Introduction

The Development Workflow

Introduction

Official Joomla! Repo

joomla/joomla-cms

Your Forked Repo

gunjanpatel/joomla-cms

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

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

Branching Model

Introduction

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

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

Using Git Commands

Clone your forked repository in local

Configure Remote

Fetch Changes

Create and Configure Branch

Or Update Existing Branch

Commit Branch

push Changes to origin (Not remote)

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

?? ? ??

Questions

Thank You

@ergunjanpatel

top related