Download presentation
Presentation is loading. Please wait.
1
GIT – tips & tricks Partnership
2
Truly distributed version control
GIT – tips & tricks
3
Basic terminology Working directory (project) Index (staging)
Git repository (database) Stash GIT – tips & tricks
4
Typical usage GIT – tips & tricks
5
Typical usage # cd MyProject # git init / git clone
# (…changing files…) # git add (preparing to commit) # git commit # git push / git pull GIT – tips & tricks
6
What is a git commit? GIT – tips & tricks
7
Organizing your commits
# git add -p <file> GIT – tips & tricks
8
Sharing your commits GIT – tips & tricks
9
Exporting commits to patch files (and sending them over e-mail)
# git format-patch index 98e10a1..828dd1a --- a/pink.html +++ b/pink.html -7,8 +7,7 </head> <body> <h1 style="color: #F0F">The Pink Page</h1> - <p>Pink is <span style="color: #F0F">girly, - flirty and fun</span>!</p> + <p>Only <span style="color: #F0F">real men</span> wear pink!</p> <p><a href="index.html">Return to home page</a></p> </body> GIT – tips & tricks
10
(strong support for non-linear development)
Branches (strong support for non-linear development) GIT – tips & tricks
11
Reuse your commits # git cherry-pick GIT – tips & tricks
12
Merging branches # git merge GIT – tips & tricks
13
Reorganizing commits # git rebase GIT – tips & tricks
14
Finding a commit which introduced a bug
# git bisect GIT – tips & tricks
15
Git hooks (events) Trailing spaces cleanup
Auto build project (continuous integration) notifications GIT – tips & tricks
17
https://code.google.com/p/gource/
Gource GIT – tips & tricks
18
Thank you Mladen Bukejlovic
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.