+ All Categories
Home > Documents > GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical...

GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical...

Date post: 26-Sep-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
165
GITHUB FOR PEOPLE WHO DON’T CODE Christopher Schmitt http://twitter.com/teleject
Transcript
Page 1: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

GITHUB FOR PEOPLEWHO DON’T CODE

Christopher Schmitt ★ http://twitter.com/teleject

Page 4: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

• nib - Stylus mixins, utilities, components, and gradient image generation

• This is Responsive - Online repo for Brad Frost's site about RWD resources

• Kraken - A lightweight, mobile-first boilerplate for front-end web developers

• Yeoman Style Prototype - Style guide generator

• OpenType Features - A Sass mix-in for turning OpenType features on and off in your embedded web fonts.

• HiSRC - The simple jQuery plugin for adaptive images in responsive web design

• Responsive Layouts - Jen Simmons’ slides

Page 5: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

GitHub

Page 6: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

GitHub

• Git on your local machine, connect to GitHub to send your code out to the world Web-based, social versioning control

• Cloud-based code repos

• Social coding = community coding

Page 7: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

GitHub Tour

• Login, profile

• Bootcamp

• Look at open source projects

• commits, contributors

• Readme files

Page 8: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

http://www.emoji-cheat-sheet.com

Page 9: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

GitHub Tour

• Issue tracking software

• Setting milestones

• Projects mentioned at ARTIFACT Conf

Page 10: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

• nib - Stylus mixins, utilities, components, and gradient image generation

• This is Responsive - Online repo for Brad Frost's site about RWD resources

• Kraken - A lightweight, mobile-first boilerplate for front-end web developers

• Yeoman Style Prototype - Style guide generator

• OpenType Features - A Sass mix-in for turning OpenType features on and off in your embedded web fonts.

• HiSRC - The simple jQuery plugin for adaptive images in responsive web design

• Responsive Layouts - Jen Simmons’ slides

Page 11: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Version Control

Page 12: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Version Control

• “Cowboy coding”

Page 13: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 14: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 15: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 16: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 17: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 18: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 19: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 20: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

$

Page 21: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

$

Page 22: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 23: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 24: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 25: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 26: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 27: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

Page 28: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

Page 29: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

Page 30: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

Page 31: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

Page 32: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X

Page 33: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X

Page 34: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X X

XX

X

Page 35: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X X

XX

X

Page 36: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X X

XX

X X XX

Page 37: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X X

XX

X

Page 38: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X X

X

X

Page 39: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X X

X

X

Page 40: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 41: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 42: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 43: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X

X

XX

XX

XX

Page 44: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X

X

XX

XX

XX

Page 45: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X

X

XX

XX

XX

Page 46: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X

X

XX

XX

XX

Page 47: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X

X

XX

XX

XX

Page 48: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

X

X

XX

XX

XX

Page 49: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 50: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Version Control

• “Cowboy coding”

• Centralized code base

Page 51: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 52: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 53: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 54: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 55: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 56: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 57: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 58: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 59: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 60: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 61: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Version Control

• “Cowboy coding”

• Centralized code base

• Decentralized code base

Page 62: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 63: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 64: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 65: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 66: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 67: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 68: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 69: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 70: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 71: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 72: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 73: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 74: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 75: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 76: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 77: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 78: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 79: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

Page 80: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

X

Page 81: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Command Line

Interface

Page 82: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 83: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 84: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 85: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 86: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• Open a session, launch Terminal

• Since you are logged into OSX, you are logged into your session!

Page 87: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• Top down, current information is always at the bottom

• The flashing rectangle is our cursor

• The prompt tells us that it's ready to accept some text

• The prompt tells us the account and directory.

Page 88: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• Type a command with keyboard

• Use left and right arrows to edit a command

• Use up and down arrows to cycle through past commands

Page 89: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• To exit out of a session, close the Terminal window

• Or type EXIT

Page 90: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• To exit out of a session, close the Terminal window

• Or type EXIT

Page 91: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• Control + A moves cursor to start of line

• Control + E moves curosr to end of line

• In Terminal, option + click line to move cursor to click point

Page 92: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• When writing a command or filename, try TAB for autocompleting file or folder names.

• TAB + TAB, when autocompletes doesn't work as Tab + Tab shows you what all the possibilities are for autocompleting

Page 93: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• When writing a command or filename, try tab key for autocompleting file or folder names.

• tab + tab, when autocompletes doesn't work as tab + tab shows you what all the possibilities are for autocompleting

Page 94: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics• ls -l is going to give listing in a vertical file

format, with information about the file

• ls -la is going to give a listing in a vertical file format with additional files. "." files are configuration files

• ls -lah gives us file sizes in human-friendly terms

• For example, .DS_Store if a file for apple that keeps information on how you like to present the GUI of your files.

Page 95: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• pwd shows current directory

• cd .. moves to parent folder

• cd / means the root of the hard drive

• cd Users/Christopher is a relative path

• cd ~ takes us into our user directory

Page 96: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• Type open . that references the current directory and it opens up the finder

• Type open .. to open parent directory

• Type open -a calculator to open up the calculator

Page 97: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• Type CLEAR to clean up the screen, if you are sick and tired of all that freaking text.

Page 98: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

• Someone’s going to tell you iTerm app is better than Terminal, so I’m just going to beat them to the punch and say “get iTerm” (but you don’t need it cause you are awesome the way you are)

• But seriously.

• http://www.iterm2.com

Page 99: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

CLI Basics

Page 100: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Basic Commands

Page 101: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git CLI Commands

git --version

Page 102: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git CLI Commands

git init [project name]

Page 103: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 104: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git CLI Commands

git add [file(s)]

Page 105: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git CLI Commands

git commit -a -m “message”

Page 106: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git CLI Commands

git status

Page 107: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

git log

Git CLI Commands

Page 108: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

git checkout

Git CLI Commands

Page 109: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

git diff

Git CLI Commands

Page 110: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

git commit-m “what changed”

Git CLI Commands

Page 111: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Branches

Page 112: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Branches

Page 113: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Use git status to see which branch we are

located in.

Git Branches

Page 114: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

If “on branch master”, people regard it as the

“trunk”

Git Branches

Page 115: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

“Master” is the canonical version of

your project

Git Branches

Page 116: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Branches

Page 117: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Make copies of a project or branch to add, edit, revise code

Git Branches

Page 118: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

git branch name_of_change

Git Branches

Page 119: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Once you created branch, you need to

check it out

Git Branches

Page 120: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Branches

git checkout name_of_change

Page 121: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Branches

• Branch is a different version or set of our code

• When we give git branch name, git grabs the latest commit of that branch

• Getting the latest version is known as the HEAD commit for the branch

Page 122: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Branches

• Check status of which branch you are on, use git status

• To get back to master, use git checkout master

Page 123: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Branches

git checkout -b name_of_change

Page 124: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Branches

Branch A Branch B

Page 125: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Branches

Branch A Branch B Branch C

Page 126: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Branches

Branch WTF

Page 127: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

Page 128: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

• Brings code back together from different branches or alternate dimensions

• Also, brings together the changes or commits made in respective branches

Page 129: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

• If there isn’t any conflict on the lines of code in each respective branch, git lets the merges just happen.

Page 130: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

git branch

Page 131: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

git master

Page 132: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

git merge name_of_change

Page 133: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

git log

Page 134: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

$ git merge masterAuto-merging lib/hello.htmlCONFLICT (content): Merge conflict in lib/hello.htmlAutomatic merge failed; fix conflicts and then commit the result.

Page 135: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

<html> <head><<<<<<< HEAD <link type="text/css" rel="stylesheet" media="all" href="style.css" />======= <!-- no style -->>>>>>>> master </head> <body> <h1>Hello,World!</h1> </body></html>

Page 136: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

<html> <head> <link type="text/css" rel="stylesheet" media="all" href="style.css" /> </head> <body> <h1>Hello,World!</h1> </body></html>

Page 137: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

git add lib/hello.html

Page 138: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

git commit -m "Merged master fixed conflict."

Page 139: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Merging Branches

Page 140: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Remote Repos

Page 141: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Remote Repo

• Creating a new repository that is a copy of another repository is called cloning.

Page 142: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Remote Repos

• So far, all our work has been in repositories on our own computer with our own branches.

• Which is great.

• However, the power of CVS is to all code changes from people from all over the world or next door improve are code.

Page 143: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Remote Repos

• Technically, a “remote repo” can be any repository that’s not the same as our the repository we are working on.

• Could be on a different server.

• Or could be in a different folder on our own computer.

Page 144: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Git Remote Repos

• Having a repository hosting elsewhere online, we can allow others to contribute to the code making it canonical.

• We can have an offsite backup of our work.

• Work with others.

Page 145: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

GitHub

Page 146: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

GitHub

• Git on your local machine, connect to GitHub to send your code out to the world Web-based, social versioning control

• Cloud-based code repos

• Social coding = community coding

Page 147: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

GitHub Tour

• Login, profile

• Bootcamp

• Look at open source projects

• commits, contributors

• Readme files

Page 148: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

http://www.emoji-cheat-sheet.com

Page 149: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

GitHub Tour

• Issue tracking software

• Setting milestones

• Projects mentioned at ARTIFACT Conf

Page 150: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

• nib - Stylus mixins, utilities, components, and gradient image generation

• This is Responsive - Online repo for Brad Frost's site about RWD resources

• Kraken - A lightweight, mobile-first boilerplate for front-end web developers

• Yeoman Style Prototype - Style guide generator

• OpenType Features - A Sass mix-in for turning OpenType features on and off in your embedded web fonts.

• HiSRC - The simple jQuery plugin for adaptive images in responsive web design

• Responsive Layouts - Jen SImmons slides

Page 151: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

• HTML5Please.com - markdown files, compiled to GH pages

• Jekyl - easy wireframing tool

• Publish that list of ARTIFACT GitHub Projects onto GitHub

• ARTIFACT Conf - issue tracking

GitHub Tour

Page 152: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

{% include footer.html %}

http://jekyllrb.com/docs/templates/

Page 153: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing
Page 154: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

http://www.momthisishowtwitterworks.com

Page 155: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

http://jekyllrb.com/docs/templates/

Page 156: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

http://quotesandaccents.com

Page 157: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

• CSS Specificity - CSS poster with icons from The Shining (hosting, custom domain name)

• HiSRC - commits, free hosting, code gone wrong!

GitHub Tour

Page 158: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Father of Unix OS

Page 159: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Still maintains the linux kernel

Page 160: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Linux kernel is 3,500 lines of code

Page 161: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Every new version of that OS has 1,000+

developers contributing code

Page 162: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

linux_oldlinux_v2olderlinux_coolStuff

Page 163: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Linus made Git to help maintain that OS

Page 164: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Other types of Version Control

Page 165: GITHUB FOR PEOPLE WHO DON’T CODE · CLI Basics • ls -l is going to give listing in a vertical file format, with information about the file • ls -la is going to give a listing

Thank you!Christopher Schmitt ★ http://twitter.com/teleject


Recommended