Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Git Tips
Musannif Zahir
April 28, 2014
Programming
1
89
Git Tips
Some tips for the intermediate Git user, presented initially at the first Kickstart.mv Tech Talks
Musannif Zahir
April 28, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
azdaroth
0
170
siketyan
1
120
saki4869
0
190
akatsukinewgrad
0
210
yumcyawiz
4
650
ogidow
0
140
anchorcable
1
130
o0h
PRO
1
1.5k
zsmb
2
110
rshindo
2
300
mraible
PRO
0
220
junmikai
0
300
Featured
See All Featured
mthomps
39
2.3k
schacon
145
6.6k
wjessup
338
16k
keathley
18
650
deanohume
295
27k
garrettdimon
287
110k
keavy
106
14k
afnizarnur
176
14k
malarkey
192
8.6k
mza
80
4.1k
geeforr
332
29k
brianwarren
83
4.7k
Transcript
GIT TIPS @mzahir GIT TIPS
Musannif Zahir (Muchi)
GIT TIPS? • Git Rebase
GIT TIPS Quick tips on boosting your productivity with Git.
Introductions to the popular git functionality and the more magical, complex git operations to make source control and code sharing hassle- free.
None
GIT FLOW Vincent Driessen
None
REVIEW REVIEW
REBASE
REBASE •Similar, but different •Modify timeline
REBASE •git rebase master •manually fix conflict •git add file
•git rebase —continue
None
SQUASH Clean commit log git rebase -i HEAD~10
PULL? •git fetch + git merge (current branch) •Manual •git
pull —rebase
ROLLBACK •git reset --soft HEAD~1
TIPS TIPS
TYPO!! •git commit --amend -m “fixes the queen’s english"
ALIASES ~/.gitconfig Convenience Clarity
AUTOCORRECT •git config —global help.autocorrect 1
TRICKS TRICKS
HISTORICAL SEARCH •git log -Ssecret_key
CI WOES
None
CI WOES git commit --amend -C HEAD; git push -f
origin branchname
GITCEPTION
GITCEPTION Restrict Access ! Reusability
TOOLS TOOLS
HUB pull-request fork create browse compare ci-status
GOURCE https://code.google.com/p/gource/
QUESTIONS QUESTIONS