Hands-On Git James Kovacs Technical Evangelist, JetBrains - - PowerPoint PPT Presentation

hands on git
SMART_READER_LITE
LIVE PREVIEW

Hands-On Git James Kovacs Technical Evangelist, JetBrains - - PowerPoint PPT Presentation

Hands-On Git James Kovacs Technical Evangelist, JetBrains @jameskovacs | jameskovacs.com james.kovacs@jetbrains.com MARQUEE SPONSOR PLATINUM SPONSOR PLATINUM SPONSOR PLATINUM SPONSOR GOLD SPONSORS SILVER SPONSORS Installing


slide-1
SLIDE 1

Hands-On Git

James Kovacs Technical Evangelist, JetBrains @jameskovacs | jameskovacs.com james.kovacs@jetbrains.com

slide-2
SLIDE 2

MARQUEE ¡SPONSOR

slide-3
SLIDE 3

PLATINUM ¡SPONSOR

slide-4
SLIDE 4

PLATINUM ¡SPONSOR

slide-5
SLIDE 5

PLATINUM ¡SPONSOR

slide-6
SLIDE 6

GOLD ¡SPONSORS

slide-7
SLIDE 7

SILVER ¡SPONSORS

slide-8
SLIDE 8

Installing Git

Windows msysGit (http://msysgit.github.com) GitHub for Windows (http://windows.github.com/) Mac OSX brew install git DMG (http://git-scm.com/download/mac) Linux apt-get install git-core (Debian/Ubuntu distros) yum install git-core (Fedora distros) For other distros, check your package manager

slide-9
SLIDE 9

Configuring Git

System-level configuration git config --system Stored in /etc/gitconfig or c:\Program Files (x86)\Git\etc\gitconfig User-level configuration git config --global Stored in ~/.gitconfig or c:\Users\<NAME>\.gitconfig Repository-level configuration git config Stored in .git/config in each repo

slide-10
SLIDE 10

Working Locally

Creating a local repository Adding files Commiting changes Viewing history Viewing a diff Working copy, staging, and repository Deleting files Cleaning the working copy Ignoring files with .gitignore

slide-11
SLIDE 11

Working Remotely

Cloning a remote repository Listing remote repositories Fetching changes from a remote Merging changes Pulling from a remote Pushing changes remotely Working with tags

slide-12
SLIDE 12

Branching, Merging, and Rebasing

Working with local branches Merging branches Rebasing commits Cherry-picking commits Working with remote branches

slide-13
SLIDE 13

Git Protocols

Protocol Port Example Notes http(s) 80/443 https://github.com/jquery/ jquery.git Read-write Password for auth Firewall friendly git 9418 git://github.com/jquery/jquery.git Read-only Anonymous only ssh 22 git@github.com:jquery/jquery.git Read-write SSH keys for auth file n/a /Users/James/code/jquery Read-write Local only

slide-14
SLIDE 14

Resources

Pro Git by Scott Chacon http://git-scm.com/book Git Happens by Jessica Kerr http://vimeo.com/46010208 Think Like a Git by Sam Livingston-Gray http://think-like-a-git.net/