10
aumnia.com your automated mobile and interactive application partner twitter.com/aumnia facebook.com/ aumnia aumnia.com/blog Saving Your Code with Git Gregg Borodaty – Aumnia, Inc. January 13, 2016

Saving Your Code with Git

Embed Size (px)

Citation preview

Page 1: Saving Your Code with Git

aumnia.com

your automated mobile and interactive application partnertwitter.com/aumnia

facebook.com/aumnia

aumnia.com/blog

Saving Your Code with Git

Gregg Borodaty – Aumnia, Inc.January 13, 2016

Page 2: Saving Your Code with Git

aumnia.comThe Agenda

1. Git – what exactly is it?2. Git and Github3. Getting started with Git4. Starting a repository5. Basic commands (add, status, commit, log, diff)6. Branching7. Resources

Page 3: Saving Your Code with Git

aumnia.comQ: What is Git?

http://git-scm.com/

A: A powerful version control system

Page 4: Saving Your Code with Git

aumnia.comThe History of GitCreated in 2005Designed and developed by Linux kernel developers (including Linus Torvalds) for Linux kernel development

Created as an alternative to Bitkeeper when the owner of that product eliminated free usage of the product

Three key characteristics• Use CVS as an example of what not to do• Support a distributed workflow• Include strong safeguards against corruption

Source: https://en.wikipedia.org/wiki/Git_(software)

Page 5: Saving Your Code with Git

aumnia.comQ: Don’t I have to use GitHub?

GitHub is a Git repository hosting service

You can run GitHub locally on your own machine, you can host your own Git server, or you can use other services like Atlassian’s BitBucket (https://bitbucket.org/)

However, there are so many open source projects and resources on GitHub, that it is a great place to collaborate and share code

A: No, you do not

Page 6: Saving Your Code with Git

aumnia.comTo get started, go to the Git site

https://git-scm.com/downloads

Page 7: Saving Your Code with Git

aumnia.comWhat did we do?

Created a repository – git initAdded files – git addCommitted them to source control – git commitReviewed file changes – git status, git diffChecked the version history – git logCreated a branch – git checkoutMerged a branch – git merge

This is just the beginning – there is so much more you can do!

Page 8: Saving Your Code with Git

aumnia.comResourcesDocs:https://git-scm.com/doc

Learn Git:https://try.github.io/https://www.codecademy.com/learn/learn-git

Git hosting services:https://github.com/https://bitbucket.org/

Page 9: Saving Your Code with Git

aumnia.comResourcesTons of books, online resources, tutorials, opinions, etc.

Here are a few to get you started on your journey:http://toroid.org/ams/git-central-repo-howtohttp://sethrobertson.github.com/GitBestPractices/http://nvie.com/posts/a-successful-git-branching-model/

Page 10: Saving Your Code with Git

aumnia.comFor more information about Aumnia: http://www.aumnia.com

For more information about me:http://greggborodaty.comhttps://www.linkedin.com/in/gregoryborodaty

Thank you!