git
TRANSCRIPT
![Page 1: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/1.jpg)
Git over here!What is it and what is it good for?
Tuesday, March 12, 13
![Page 2: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/2.jpg)
What’s Version Control and why should I care?
Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.
Tuesday, March 12, 13
![Page 3: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/3.jpg)
Tuesday, March 12, 13
![Page 4: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/4.jpg)
And Linus was Like:
Tuesday, March 12, 13
![Page 5: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/5.jpg)
And Linus was Like:
Tuesday, March 12, 13
![Page 6: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/6.jpg)
Git INIT
To start using git in a directory
$ git init
Initialized empty Git repository in /your_dir_here
Tuesday, March 12, 13
![Page 7: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/7.jpg)
Git ADD
“Hey git, start tracking my files!”
$ git add
Git now knows these exists for version controlling
Tuesday, March 12, 13
![Page 8: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/8.jpg)
Git COMMIT
Click, click - make a snapshot!
$ git commit --message ”first commit”
Git made a new ‘savepoint’
Tuesday, March 12, 13
![Page 9: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/9.jpg)
Git commit
$ git commit -m “First commit!”
Tuesday, March 12, 13
![Page 10: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/10.jpg)
Git PUSH
To share your cool commits with others, you need to push your changes to the remote repository
$ git push (origin master)
Tuesday, March 12, 13
![Page 11: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/11.jpg)
Git PULL
Update itself with new data from the remote repository
$ git pull
Tuesday, March 12, 13
![Page 12: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/12.jpg)
Git CLONE
Github.com
Bazillions of repositories!
da
$ git clone https://github/profile/reponame
Tuesday, March 12, 13
![Page 13: GIT](https://reader034.vdocuments.mx/reader034/viewer/2022042818/55ac35751a28ab19158b45f8/html5/thumbnails/13.jpg)
Further reading
Free Git Book! : http://git-scm.com/book
Interactive course: http://www.codeschool.com/courses/try-git
Handy reference: http://gitref.org/index.html
Tuesday, March 12, 13