Mais conteúdo relacionado
Semelhante a Git, Jenkins & Chuck (20)
Mais de Juraj Michálek (20)
Git, Jenkins & Chuck
- 1. Git, Jenkins & Chuck
Starcube
Brno
25.9. 2012
Juraj Michálek
http://georgik.sinusgear.com
http://twitter.com/sinusgear
- 2. Content
Git – Basics
Git – Advanced
Jenkins
Chuck?
- 4. Heroku Toolbelt
All important tools in one package.
https://toolbelt.heroku.com/
- 6. Github
Social coding
http://github.com
- 8. PF 2012
https://pf2012.codeplex.com/
Git Clone
- 11. Fork
Fork remote repository
- 13. Git
Remote repository
Local repository
Stage
Working area
- 14. Git - clone
Remote repository
clone
Local repository
Stage
Working area
- 15. Git - add
Remote repository
Local repository
Stage
add
Working area
- 16. Git - commit
Remote repository
Local repository
commit
Stage
Working area
- 17. Git - push
Remote repository
push
Local repository
Stage
Working area
- 18. Git – operations
Remote repository
clone push
Local repository
commit
Stage
add
Working area
- 19. Configure
git config --global user.name "Juraj Michalek"
git config --global user.email "juraj.michalek@gmail.com"
- 23. Git - add
Remote repository
Local repository
Stage
add
Working area
- 24. Add
git add .
Everything in working dir.
git add filename
- 26. Git - commit
Remote repository
Local repository
commit
Stage
Working area
- 27. Commit
git commit -m „Initial commit“
- 28. Commit message
Short line summary – 50 characters.
Longer message: blank line and message
Keep it up to 72 characters.
- 29. Commit message
Ticket ID/Bug system reference
Good and descriptive
- 30. Logs
git log
git log branch1..branch2
- 31. Branches
git branch
git branch newbranch
git checkout newbranch
- 32. Diff
git diff
git diff --color-words
- 34. Git - push
Remote repository
push
Local repository
Stage
Working area
- 35. Connecting to remote
Cloned repos are connected.
git remote add origin url
git push -u origin master