Useful git
How to get more out of what you use anyway
Nick Terner
Developer who also does ops
Expert troubleshooter, startup generalist
@somenick
Agenda
Why?
SCM
Those who cannot learn from history are doomed to repeat it.
Those who cannot remember the past are condemned to repeat it.
-- George Santayana
Linus, Linux, Git
Use SCM!
What?
What is git?
RTFM
Commit Messages
Describe the purpose of what you did - the ‘Why’��Example:�� fix TLS security�� # OR EVEN�� improve crypto params for TLS�� # BUT NOT�� replace MD5 with SHA256�
Commit Messages
DO:
Two considerations for what (and how) to put in
�There are exceptions, but if hear anything new today, YOU'RE NOT an EXCEPTION
DON’T:
Generally, keyword like:
indicate that you're not providing actual information
Do not edit files on Github
No Info Included
Maintenance Commits
�
Commit Messages: removing junk
Infrastructure as Code
Code Reviews and Communication
How?
Very basics
checking out somebody else's branch...��Once Alice pushes her 'feature' branch, origin/feature will appear in the next�fetch for Bob, who can then simply do::�� git checkout feature_branch�
Branch Namespaces
origin/<user>/NAME� origin/topic/NAME� origin/old/NAME� origin/shared/NAME�
origin/pulls/PR# - github��bitbucket has had more granular ACLs for a while
Interfaces
���
Work Flows
Rebase / Merge
Rebase:
Merge:
Maintaining multiple concurrent releases is a hassle with either
https://blog.spreedly.com/2014/06/24/merge-pull-request-considered-harmful/
Rebase during dev
GUI
Interesting Features
Commands:
Takeaways
Looking for projects
Thank You