23
GITT Git per Istituto Tecnico Tecnologico

Gitt (part 2 of 2)

Embed Size (px)

DESCRIPTION

A presentation about introduction to git that I gave at a local school in Italy for both teachers and students–alike.

Citation preview

Page 1: Gitt (part 2 of 2)

GITTGit per Istituto Tecnico Tecnologico

Page 2: Gitt (part 2 of 2)

Oggi: PraticaCode Hosting, Collaborazione, GUI!!!

Page 3: Gitt (part 2 of 2)

Appello!

Page 4: Gitt (part 2 of 2)

$ git clone <repo> $ git clone --origin “<nome>” <repo>

Page 5: Gitt (part 2 of 2)
Page 6: Gitt (part 2 of 2)
Page 7: Gitt (part 2 of 2)
Page 8: Gitt (part 2 of 2)
Page 9: Gitt (part 2 of 2)

$ git remote add <nome> <repo> $ git remote remove <nome>

Page 10: Gitt (part 2 of 2)
Page 11: Gitt (part 2 of 2)
Page 12: Gitt (part 2 of 2)
Page 13: Gitt (part 2 of 2)

$ git fetch <remote> $ git fetch --prune <remote>

Page 14: Gitt (part 2 of 2)

$ git fetch + merge = pull

Page 15: Gitt (part 2 of 2)

$ git pull $ git pull <remote> $ git pull <remote> <branch> fetch <remote> merge <remote>/<branch>

Page 16: Gitt (part 2 of 2)
Page 17: Gitt (part 2 of 2)
Page 18: Gitt (part 2 of 2)
Page 19: Gitt (part 2 of 2)

pull

Page 20: Gitt (part 2 of 2)

pull ?

Page 21: Gitt (part 2 of 2)

$ git push $ git push <remote> $ git push <remote> <branch> $ git push <remote> <branch>:<branch>

Page 22: Gitt (part 2 of 2)

Appunti• Installare git (ed opzionalmente una GUI)

• git-svn

• Ogni repo GitHub è anche una repo SVN

• reset, rebase, stash, tag, staging area, HEAD, bisect, .gitignore, .gitattributes, grep, clean

• Upload slideshare & update links

• GitHub education program

Page 23: Gitt (part 2 of 2)

Link Utili• git-scm.com

(Il riferimento assoluto = noioso, ma utile) • mac.github.com o windows.github.com

(La modalità più facile per installare Git & GitHub GUI per Mac e Windows) • git-scm.com/download/gui

(GUI per tutti gli sistemi operativi) • try.github.io

(Prova git direttamente nel browser) • gitreal.codeschool.com

(Video corso gratuito con gli esercizi, direttamente nel browser) • help.github.com

(Un po’ di aiuto pratico, sia per Git sia per GitHub)