56

Using Git to Organize Your Project

Embed Size (px)

DESCRIPTION

Using Git to Manage, Track and Collobarate Your WordPress Project.

Citation preview

Page 1: Using Git to Organize Your Project
Page 2: Using Git to Organize Your Project

Using GitHub to Organize

Your Project

Page 3: Using Git to Organize Your Project
Page 4: Using Git to Organize Your Project

How I lost a Client

Page 5: Using Git to Organize Your Project

Pain Points of Development

UNORGANIZED WORKFLOW

COLLABORATE ADD NEW FEATURES

Page 6: Using Git to Organize Your Project
Page 7: Using Git to Organize Your Project

Not Only For Programmers. Also For Bloggers and Writers.

Check Out Live: Github.com/WordPress/book

Page 8: Using Git to Organize Your Project

What is Git?

• Distributed Version Control

System (VCS)

• Created by Linus Torvalds

Page 9: Using Git to Organize Your Project

Git is all about composing

and saving snapshots

of your project

and then working with and

comparing those snapshots.

Page 10: Using Git to Organize Your Project

Tools Required To

Use GitHub

• Basic CLI (Command Line

Interface) Commands

• Basic Git Commands

• Setup and Use a Repo

Page 11: Using Git to Organize Your Project

git-scm.com/download

Page 12: Using Git to Organize Your Project

GitHub Graphical User Interface Available for Windows and

Mac

Page 13: Using Git to Organize Your Project
Page 14: Using Git to Organize Your Project

VS

Page 15: Using Git to Organize Your Project

Track All Changes, Who Made it & When it Happened

Page 16: Using Git to Organize Your Project

See Exactly What You Changed & Roll Back Changes

Page 17: Using Git to Organize Your Project

Collaboration Friendly

Page 18: Using Git to Organize Your Project

Organized Workflow

Page 19: Using Git to Organize Your Project

Branching is easy,

which makes it easier to

develop features in parallel

Page 20: Using Git to Organize Your Project

High Availability: You Can Work Offline

Page 21: Using Git to Organize Your Project

Most Importantly….

• It helps in project

management and

organization, which solves

the biggest pain point for

developers.

Page 22: Using Git to Organize Your Project

From now onwards, Github and WordPress will work together for

pull requests on plugins and themes. #wcsf14 #StateoftheWord

Page 23: Using Git to Organize Your Project

Beginners: Basic Git Commands

• git status: See your changed files

• git add: Queue up files

• git commit: Make a commit

• git push: Push commits to GitHub.com

• git pull: Pull latest changes from repo

Page 24: Using Git to Organize Your Project

git status: What has been changed & modified

Page 25: Using Git to Organize Your Project

git add: Add file contents to the Staging Area

Page 26: Using Git to Organize Your Project

git diff: Display what code/contents you’ve changed

Page 27: Using Git to Organize Your Project

git commit: Record snapshot of the content

Page 28: Using Git to Organize Your Project

git push: Push your new branches and

data to a remote repository

Page 29: Using Git to Organize Your Project
Page 30: Using Git to Organize Your Project

• Git is a revision control system, a tool to

manage your source code history.

• GitHub is a hosting service for Git

repositories.

• Git the tool, GitHub the service for

projects that uses Git.

VS

Page 31: Using Git to Organize Your Project

A short example of a

Local Folder Pushed

to GitHub.com

Page 32: Using Git to Organize Your Project

Let’s Create a Folder named ‘WordCamp

Nepal’ on our Desktop

Page 33: Using Git to Organize Your Project

Creating “WordPressInfo.html”

Page 34: Using Git to Organize Your Project

So now we have ‘WordPressInfo.html’

inside ‘WordCamp Nepal’

Page 35: Using Git to Organize Your Project

Uploading the

‘WordCamp Nepal’

folder to GitHub

Page 36: Using Git to Organize Your Project

Go to GitHub.com and Create a New

Repository

Page 37: Using Git to Organize Your Project

Give Repository a Name And Fill in

the Details

Page 38: Using Git to Organize Your Project

Grab the code and push WordCamp

Nepal folder to GitHub

Page 39: Using Git to Organize Your Project

You’ll Need to use these

commands on your CLI to

upload to GitHub.

• git status: See your changed files

• git add: Queue up files

• git commit: Make a commit

• git push: Push commits to

GitHub.com

Page 40: Using Git to Organize Your Project

WordCamp Nepal Folder on GitHub

Page 41: Using Git to Organize Your Project

WordPressInfo.html on GitHub

Page 42: Using Git to Organize Your Project

WordCamp Nepal Folder on

your Local Computer

Page 43: Using Git to Organize Your Project

WordCamp Nepal Folder GitHub.com

Page 44: Using Git to Organize Your Project

WordPressInfo.html on your

Local Computer

Page 45: Using Git to Organize Your Project

WordPressInfo.html on GitHub

Page 46: Using Git to Organize Your Project

Check Out WordCamp Nepal

Repository Live on GitHub

github.com/manishsuwal/

WordCamp-Nepal/

Page 47: Using Git to Organize Your Project

Git Resources

Page 48: Using Git to Organize Your Project

Pro Git: git-scm.com/boo

k

Page 49: Using Git to Organize Your Project

Git Immersion: gitimmersion.co

m

Page 50: Using Git to Organize Your Project

Learn Git in your browser: try.github.i

o

Page 51: Using Git to Organize Your Project

Git Reference: gitref.org

Page 52: Using Git to Organize Your Project

Note: GitHub Doesn’t Offer private repositories for fre

e.

Page 53: Using Git to Organize Your Project

Some Alternatives To

Page 54: Using Git to Organize Your Project
Page 55: Using Git to Organize Your Project

/manishsuwal

/manishsuwal

Social

Web

/manishsuwal

/manishsuwalmanishsuwal.com.np

enwil.com

devotepress.com

Page 56: Using Git to Organize Your Project