git (advanced) in 5 slides
Upcoming SlideShare
Loading in...5
×
 

git (advanced) in 5 slides

on

  • 183 views

I try to present a conccept in 5 slides …

I try to present a conccept in 5 slides …

… today git (advanced)

Statistics

Views

Total Views
183
Views on SlideShare
183
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

git (advanced) in 5 slides git (advanced) in 5 slides Presentation Transcript

  • git in 5 slides (advanced)
  • git how to work with branch a branch is parallel development HEB-ÉSI · Pierre Bettens (pbt) · 2 / 9
  • basic use default branch is master echo "I'm the best" > file git init git add . git commit -m "First commit" HEB-ÉSI · Pierre Bettens (pbt) · 3 / 9
  • basic use create other branch called chief git checkout -b chief echo "Chief is better than me" > file git commit -a -m "Chief commit" git checkout < master | chief > HEB-ÉSI · Pierre Bettens (pbt) · 4 / 9
  • basic use merge modifications git merge <branch> pull ≠ fetch = fetch + merge HEB-ÉSI · Pierre Bettens (pbt) · 5 / 9
  • standard workflow
  • workflow work on sprint_i+1 … … when sprint_i must be validated sprint_i is master git checkout -b sprint_i+1 … // sprint_i validated git checkout master git merge sprint_i+1 git branch -d sprint_i+1
  • I fail ! amend when you fail change commit message git commit --amend add file with 'git add' and commit git commit --amend -a blame show change history for a file and say who fail
  • This slides are part of 5slides serie « 5slides – how to present a concept in 5 slides » Credits gitmagic by Ben Lynn fr en Who am I ? Pierre Bettens (pbt) – http://blog.namok.be Images and icons The noun project; Joe Harrisson, Juan Pablo Bravo, Mert Gutav DeviantArt; Navanna Flickr; Richard Cuisset