Using Git to Organize Your Project

Preview:

DESCRIPTION

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

Citation preview

Using GitHub to Organize

Your Project

How I lost a Client

Pain Points of Development

UNORGANIZED WORKFLOW

COLLABORATE ADD NEW FEATURES

Not Only For Programmers. Also For Bloggers and Writers.

Check Out Live: Github.com/WordPress/book

What is Git?

• Distributed Version Control

System (VCS)

• Created by Linus Torvalds

Git is all about composing

and saving snapshots

of your project

and then working with and

comparing those snapshots.

Tools Required To

Use GitHub

• Basic CLI (Command Line

Interface) Commands

• Basic Git Commands

• Setup and Use a Repo

git-scm.com/download

GitHub Graphical User Interface Available for Windows and

Mac

VS

Track All Changes, Who Made it & When it Happened

See Exactly What You Changed & Roll Back Changes

Collaboration Friendly

Organized Workflow

Branching is easy,

which makes it easier to

develop features in parallel

High Availability: You Can Work Offline

Most Importantly….

• It helps in project

management and

organization, which solves

the biggest pain point for

developers.

From now onwards, Github and WordPress will work together for

pull requests on plugins and themes. #wcsf14 #StateoftheWord

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

git status: What has been changed & modified

git add: Add file contents to the Staging Area

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

git commit: Record snapshot of the content

git push: Push your new branches and

data to a remote repository

• 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

A short example of a

Local Folder Pushed

to GitHub.com

Let’s Create a Folder named ‘WordCamp

Nepal’ on our Desktop

Creating “WordPressInfo.html”

So now we have ‘WordPressInfo.html’

inside ‘WordCamp Nepal’

Uploading the

‘WordCamp Nepal’

folder to GitHub

Go to GitHub.com and Create a New

Repository

Give Repository a Name And Fill in

the Details

Grab the code and push WordCamp

Nepal folder to GitHub

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

WordCamp Nepal Folder on GitHub

WordPressInfo.html on GitHub

WordCamp Nepal Folder on

your Local Computer

WordCamp Nepal Folder GitHub.com

WordPressInfo.html on your

Local Computer

WordPressInfo.html on GitHub

Check Out WordCamp Nepal

Repository Live on GitHub

github.com/manishsuwal/

WordCamp-Nepal/

Git Resources

Pro Git: git-scm.com/boo

k

Git Immersion: gitimmersion.co

m

Learn Git in your browser: try.github.i

o

Git Reference: gitref.org

Note: GitHub Doesn’t Offer private repositories for fre

e.

Some Alternatives To

/manishsuwal

/manishsuwal

Social

Web

/manishsuwal

/manishsuwalmanishsuwal.com.np

enwil.com

devotepress.com

Recommended