Intro to Git and GitHub Version Control using Git Carol Schofield Developer, ThoughtWorks
Version Con---what?
What is Version Control /Source Control ? .
What is Git? Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Created by Linus Torvalds https://git-scm.com/
Is Git for Me? Use git to manage your code locally & store it remotely Use git to work with others Use git to manage other projects: Writing, Blogging, Poetry Recipes Travel Logging Musical Composition Legal Documents Put git on your resume! Source: http://readwrite.com/2013/11/08/seven-ways-to-use-github-that-arent-coding/
Got 15-30 minutes and want to learn git? https://try.github.io/levels/1/challenges/1 git init git status git add git commit git log
You can Git Power Moves Checkout earlier versions Un-do changes Work on multiple versions at the same time Incorporate the work of others Re-write history
Let’s Get Distributed: GitHub GitHub is a code hosting platform for version control and collaboration. Free account, free public storage Collaborate with others Use GitHub in the browser! OCTOCAT! Source: https://guides.github.com/activities/hello-world !
Contribute (pull requests) Git Social with GitHub Follow people Watch projects Learn (try forking) Contribute (pull requests) https://help.github.com/articles/be-social/
Wow! No installation needed! Create an account Create a repository Create and modify your project via the browser Wow! No installation needed! Create an account Create a repository Make changes Make a commit https://guides.github.com/activities/hello-world/#what https://help.github.com/articles/create-a-repo/ https://help.github.com/articles/set-up-git/
All OS: https://git-scm.com/downloads Mac: Brew: http://brew.sh/ Installing Git All OS: https://git-scm.com/downloads Mac: Brew: http://brew.sh/ Linux: sudo apt-get install git Windows: https://git-for-windows.github.io/ GUI: Graphical User Interfaces https://git-scm.com/downloads/guis https://help.github.com/articles/set-up-git/ The link for windows is great- bash emulator or GUI https://git-for-windows.github.io/ The all Operating systems link offers downloads for all OS If you use homebrew- package manager for Mac Git’s instructions: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
Learn how to go back to the past (get out of trouble) Undo changes The FUTURE…. Learn how to go back to the past (get out of trouble) Undo changes Merge your work with others More FUN!
Other Sources http://rogerdudler.github.io/git-guide/ http://www.sitepoint.com/git-for-beginners/ http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide http://readwrite.com/2013/10/02/github-for-beginners-part-2/ https://help.github.com/ Google is your friend (or Try DuckDuckGo or another alternate search engine)
GitHub Create a git repository locally and push it to GitHub Create a project on GitHub and clone it locally Create and work on your projects via your browser https://guides.github.com/activities/hello-world/#what
Fork a Repo https://help.github.com/articles/fork-a-repo/