15
Code Collaboration an introduction to git and github

Introduction to GitHub

Embed Size (px)

Citation preview

Page 1: Introduction to GitHub

Code Collaborationan introduction to git and github

Page 2: Introduction to GitHub

Agenda● Introduction to Git● Introduction to GitHub● Introduction to GitHub Flow● Hands-on Lab

Page 3: Introduction to GitHub

Introduction to Git● Version Control System● Feature Control System● Developer 911● Local

Page 4: Introduction to GitHub

Introduction to Git● Repository● Branch● Commits● Pull Requests● Collaborators

Page 5: Introduction to GitHub

Introduction to GitHub● Git on the Cloud● Collaborative - Work with your team!● Code Review● Become famous● Remote

Page 6: Introduction to GitHub

Introduction to GitHub - Why?● Easy● Redundant● De-facto Standard● Again, Collaborative

Page 7: Introduction to GitHub

GitHub Flow - Create a Branch

Page 8: Introduction to GitHub

GitHub Flow - Add Commits

Page 9: Introduction to GitHub

GitHub Flow - Open a pull request

Page 10: Introduction to GitHub

GitHub Flow - Discuss and Review your code

Page 11: Introduction to GitHub

GitHub Flow - Deploy / Test

Page 12: Introduction to GitHub

GitHub Flow - Merge

Page 13: Introduction to GitHub

Hands-on● Setup Account● Install GitHub Desktop● Create repo● Create branch● Push / Sync● Collaborate

○ master branch protection○ add your team members

● Conflict resolution● Tada!

Page 14: Introduction to GitHub

Things to remember● Add comments wherever possible● Always add a good commit message● Sync your code with remote often (as much as possible)● Do a code review and test before merging to master branch● Git is not almighty! Breakdown the project into smaller chunk to avoid code

conflict

Page 15: Introduction to GitHub

Sourceshttps://guides.github.com/introduction/flow/