Technical Presentation by: David Spano
About Git (VCS) Simple Git Commands Branching Github Git GUI Summary
Why Git? Changes passed as patches and archived files Early linux and BitKeeper 2002 Develop own tool based on experience with BitKeeper Speed Simple design Strong support for non-linear development Fully distributed Able to handle large projects
What is Git? Created in 2005 Derived from British English slang Free software dist. GNU Source Code Management system Emphasis on speed Most operations in Git only need local files and resources to operate The heart of Github
Fig 1 – Other systems tend to store data as changes to a base version of each file. Figure 2 - Git stores data as snapshots of the project over time.
Everything in Git is check-summed Uses a SHA-1 hash 40 character String Hexadecimal (0-9 and a-f) Stores by hash not by file name 24b9da aa493b52f8696cd6d3b00373 Example of SHA-1 hash:
Git directory Working directory Staging area
Windows: OSX: git –version git config – global
$ git init creates a.git file $ git add *.c $ git add README $ git commit -m “initial project version” $ git clone
$ git status $ git log $ git show $ git pull $ git commit –m ‘ ’ $ git push $ git –b $ git branch –D $ git branch $ git checkout $ git merge
Git repository hosting service Web-based graphical interface Provides public and private repositories Allows “forking”
History of Git Simple Git Commands Branching Github Github GUI
"1.3 Getting Started - Git Basics." Git. N.p., n.d. Web. 20 Apr "Build Software Better, Together." GitHub ·. N.p., n.d. Web. 20 Apr Finely, Klint. "What Exactly Is GitHub Anyway?" TechCrunch RSS. Sat. July