1 applied cyberinfrastructure concepts ista 420/520 fall 2015 1

22
1 Concepts ISTA 420/520 Fall 2015 1

Upload: roy-lambert

Post on 03-Jan-2016

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

1

Applied CyberInfrastructure Concepts

ISTA 420/520 Fall 2015

1

Page 2: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

Version control with Git

2

https://xkcd.com/1296/

Page 3: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

Docker Vs. Git

Discussion

3

Page 4: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

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

Page 5: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

Example of why having a public code repo is important

5

Page 6: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

Example of why having a public code repo is important

6

Page 7: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

7

What does GitHub say about you?

Page 8: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

8

Page 9: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

What is GIT?

9http://git-scm.com/book/en/v2

Page 10: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

What is GitHub?

10

Page 11: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

Tracking programming trends

11http://www.wired.com/2015/08/github-data-shows-changing-software-

landscape/

Page 12: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

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

Page 13: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

13

Page 14: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

14

Getting started

Page 15: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

Add new files

15

Page 16: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

Log

16

Page 17: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

Oops!

17

Page 18: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

18

Oops!

What is ‘HEAD’ in Git?

Page 19: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

Oops!

19

Safe (revert is part of history)

Unsafe (no recovery after reset)

Page 20: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

Some other useful git commands

git status git diff

20

Page 21: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

When do things get fun?

21

Page 22: 1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall 2015 1

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.

22

http://naupaka.github.io/2015-02-21-iplant/novice/git/index.html