Your SlideShare is downloading. ×
0
Source Code Management withGit & Github.comKiattisak AnoochitaromNovember 18, 2012
Introduction to VCSWhat is version control, and why should care ? Version Control is asystem that record changes to a file ...
Local Version Control
Centralized Version Control
Centralized Version Control
Distributed Version Control                   Full Mirror                   Almost Everything is Local                   F...
Version Control System Software  Mercurial (HG)   SVN (Subversion)
Git
FastSimpleMany branchesFully DistributedWork efficientlywith Linux Kernel
Who use git ?
3 File Status on Git     untracked        unmodified             modified                 staged                            ...
3 Stages of Git The Basic Git             working                           directory                                     ...
Download and Install Git       http://www.git-scm.com
Basic Configuration $ git config --global user.name “iMacbaszii” *** $ git config --global user.email “macbaszii@gmail.com” ...
Create Repository
Stage and Commit File
Check your files status
Log Committed History
Remove, Rename File
Demo
Github.com
Generating SSH Keys (public key)     $ ssh-keygen -t rsa -C “macbaszii@gmail.com”                               https://he...
Add your SSH key to Github                 https://help.github.com/articles/generating-ssh-keys
Create online Repository
Quick setup
Work with Github
It’s work.
Clone Repository
Many Open-Source Library on Github
GUI Tools         SourceTree                        Tortoise Git http://www.sourcetreeapp.com   http://code.google.com/p/t...
Book Recommended                http://www.progit.orghttps://github.com/opendream/progit
Git slide
Upcoming SlideShare
Loading in...5
×

Git slide

315

Published on

Source Code Management with Git and Github. Nov 18, 2012. Department of Computing, Silpakorn University.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
315
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Git slide"

  1. 1. Source Code Management withGit & Github.comKiattisak AnoochitaromNovember 18, 2012
  2. 2. Introduction to VCSWhat is version control, and why should care ? Version Control is asystem that record changes to a file or set of files over time so that youcan recall a specific versions later. For the example in this class youwill use software source code as the files being version controlled,through in reality you can do this with nearly any type of file on acomputer.It allows you to revert files back to a previous state, revert the entireproject back to a previous state, compare changes over time, see wholast modified something that might be causing a problem, whointroduced an issue and when, and more.
  3. 3. Local Version Control
  4. 4. Centralized Version Control
  5. 5. Centralized Version Control
  6. 6. Distributed Version Control Full Mirror Almost Everything is Local Fast Full Backup Work Offline
  7. 7. Version Control System Software Mercurial (HG) SVN (Subversion)
  8. 8. Git
  9. 9. FastSimpleMany branchesFully DistributedWork efficientlywith Linux Kernel
  10. 10. Who use git ?
  11. 11. 3 File Status on Git untracked unmodified modified staged edit the file add the file stage the file remove the file commit the file
  12. 12. 3 Stages of Git The Basic Git working directory staging area git directory (repository) workflow checkout the project 1. You modify files in your working directory. 2. You stage the files. 3. You do a commit, stage files files on your staging area are permanently commit files stores in Repository.
  13. 13. Download and Install Git http://www.git-scm.com
  14. 14. Basic Configuration $ git config --global user.name “iMacbaszii” *** $ git config --global user.email “macbaszii@gmail.com” *** $ git config --global core.editor mate $ git config --global merge.tool vimdiff $ git config --list *** $ git config user.name ***
  15. 15. Create Repository
  16. 16. Stage and Commit File
  17. 17. Check your files status
  18. 18. Log Committed History
  19. 19. Remove, Rename File
  20. 20. Demo
  21. 21. Github.com
  22. 22. Generating SSH Keys (public key) $ ssh-keygen -t rsa -C “macbaszii@gmail.com” https://help.github.com/articles/generating-ssh-keys
  23. 23. Add your SSH key to Github https://help.github.com/articles/generating-ssh-keys
  24. 24. Create online Repository
  25. 25. Quick setup
  26. 26. Work with Github
  27. 27. It’s work.
  28. 28. Clone Repository
  29. 29. Many Open-Source Library on Github
  30. 30. GUI Tools SourceTree Tortoise Git http://www.sourcetreeapp.com http://code.google.com/p/tortoisegit/
  31. 31. Book Recommended http://www.progit.orghttps://github.com/opendream/progit
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×