Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1 Version control with Git https://xkcd.com/1296/ 2 Docker Vs. Git Discussion 3 Version control Do we really need it ? How will we use it Do you have your git hub account ? Git != Git Hub Git Hub is your CV/Resume 4 Example of why having a public code repo is important 5 Example of why having a public code repo is important 6 What does GitHub say about you? 7 8 What is GIT? http://git-scm.com/book/en/v2 9 What is GitHub? 10 Tracking programming trends http://www.wired.com/2015/08/github-data-shows-changing-software-landscape/ 11 How is Git used? Install git Config yourself (git config) Initialize a project (git or GitHub) git init git clone Git going. . . Make files, edit files git add git commit git push 12 13 Getting started 14 Add new files 15 Log 16 Oops! 17 Oops! What is ‘HEAD’ in Git? 18 Oops! Safe (revert is part of history) Unsafe (no recovery after reset) 19 Some other useful git commands git status git diff 20 When do things get fun? 21 Hands on with Git! Initialize a git repo Check it into your GitHub repo Create/modify a file Add, commit, push If you know how to do this, find someone who doesn’t and help them. http://naupaka.github.io/2015-02-21-iplant/novice/git/index.html 22