ernst peter tamminga get started with github xcess expertise center b.v. netherlands

25
Ernst Peter Tamminga Get started with GitHub XCESS expertise center b.v. Netherlands

Upload: garry-snow

Post on 01-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Ernst Peter Tamminga

Get started with GitHub

XCESS expertise center b.v.Netherlands

Get started with GitHub

Pull request

Objectives

• Put your module on GitHub– And share!

• Get YOUR copy of an existing module– Improve it– Give your improvement back

• Learn some Git terminology

Prerequisites

• Account on www.github.com

• Software– SourceTree (Open Source GitHub enhancement)– Visual Studio (or any code editor)

• Some source code (module, skin)– That you want to share

WHY?

DNN = Open Source = Community = Contributing = Sharing

PUT YOUR MODULE ON GITHUBUse Git(Hub) as source control and source sharing

Who is already working with GIT(Hub)?

And what do you do with that?

GitHub

GitHubRepository

“Orgin”

LocalRepository

Clone

Push

EditStageCommit

1

2

3

4

Your disk

Put your module on GitHub

1. Create a repository on GitHub

2. Clone this repo to a folder on your local drive

3. Add all files from your module to that folder– Stage the (new) files to your local repo– Commit the changes to your local repo

• Push the commit to the GitHub repo

DEMOPut your module on GitHub

GET YOUR COPY OF AN EXISTING MODULE ON GITHUB

Use Git(Hub) as source control and source sharing

GitHub

GitHubRepository

“Orgin”

LocalRepository

Clone

Push

EditStageCommit

1

2Your disk

GitHuboriginal

repository Fork

Get your copy of a module

1. Fork the repository on GitHub

2. Do the usual things– Clone this repo to a folder on your local drive– Create a branch on your local repo– Make your changes: Edit, Stage, Commit– Push the commit to your GitHub repo

DEMOGet your copy of a module

GIVE IMPROVEMENTS BACKTO THE ORIGINAL MODULE OWNER

Share your results

Give improvements back

1. Fork the repository on GitHub

2. Do the usual things– Clone this repo to a folder on your local drive– Create a branch on your local repo– Make your changes: Edit, Stage, Commit– Push the commit to your GitHub repo

3. Add the original repo as UpStream repo (once) and fetch the latest changes

4. Create a Pull request for the UpStream repo

GitHub

LocalRepository

3Your disk

GitHubrepository

“UpStream”

UpStream

4Pull Request

GitHubRepository

“Orgin”

DEMOGive improvements back

Submit changes for DNNPlatform

• Select or Create a JIRA issue

• Commit your changes (locally)

• Push the change to your origin

• Create Pull Request for the UpStream (DNNPlatform)

Git(Hub) terminology

• Repository (aka Repo)• Fork• Clone• Stage• Commit

• Push• Pull request• Origin• UpStream

Goal reached?

I NEED SOME ASSISTANCE

DNN = Open Source = Community = Contributing = Sharing

DNN.EventsDNN.FAQ

DNN.ReportsDNNSoftware.com