Version control
Upcoming SlideShare
Loading in...5
×
 

Version control

on

  • 233 views

 

Statistics

Views

Total Views
233
Views on SlideShare
233
Embed Views
0

Actions

Likes
0
Downloads
24
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Version control Version control Presentation Transcript

    • Version ControlBasics of Git References: http://gitref.orgFeb. 23, 2013 http://git-scm.com
    • Outline • What is Version Control • Why Version Control • Git as Version Control ToolFeb. 23, 2013
    • WhatFeb. 23, 2013
    • What Version ControlFeb. 23, 2013
    • What Version Control lets you track your filesFeb. 23, 2013
    • What Version Control lets you track your files so when you mess up you can easily get back to a previous working versionFeb. 23, 2013
    • WhyFeb. 23, 2013
    • Why • Backup and RestoreFeb. 23, 2013
    • Why • Backup and Restore • SynchronizationFeb. 23, 2013
    • Why • Backup and Restore • Synchronization • Track ChangesFeb. 23, 2013
    • Why • Backup and Restore • Synchronization • Track Changes • Track OwnershipFeb. 23, 2013
    • How • Repository where files are being stored • Local Repository repository in the local machine • Remote Repository are versions of your project that are hosted over the Internet or network somewhereFeb. 23, 2013
    • Git: BasicsFeb. 23, 2013
    • Git: Basics • Get / Create RepositoryFeb. 23, 2013
    • Git: Basics • Get / Create Repository • Record ChangesFeb. 23, 2013
    • Git: Basics • Get / Create Repository • Record Changes • Track HistoryFeb. 23, 2013
    • Git: Basics • Get / Create Repository • Record Changes • Track History • Undo ThingsFeb. 23, 2013
    • Git: Basics • Get / Create Repository • Record Changes • Track History • Undo Things • Sharing / Updating FilesFeb. 23, 2013
    • git-clone working staging remote local repo directory area repo git-add git-commit git-push git-reset git-fetch git-checkout git-pull git-diff git-diff --stagedFeb. 23, 2013Feb. 23, 2013
    • Create / GetFeb. 23, 2013
    • Create / Get • get remote repositoryFeb. 23, 2013
    • Create / Get • get remote repository git clone [repository url] [destination]Feb. 23, 2013
    • Create / Get • get remote repository git clone [repository url] [destination] • existing directoryFeb. 23, 2013
    • Create / Get • get remote repository git clone [repository url] [destination] • existing directory git init [path/to/directory|file]Feb. 23, 2013
    • Record ChangesFeb. 23, 2013
    • Record Changes • Tracked FilesFeb. 23, 2013
    • Record Changes • Tracked Files Files that are currently in the repositoryFeb. 23, 2013
    • Record Changes • Tracked Files Files that are currently in the repository - unmodified, modified, stagedFeb. 23, 2013
    • Record Changes • Tracked Files Files that are currently in the repository - unmodified, modified, staged • Untracked FilesFeb. 23, 2013
    • Record Changes • Tracked Files Files that are currently in the repository - unmodified, modified, staged • Untracked Files Everything elseFeb. 23, 2013
    • Tracking New FilesFeb. 23, 2013
    • Tracking New Files git add [path/to/file|directory]Feb. 23, 2013
    • Tracking New Files git add [path/to/file|directory] git-add command adds files to the staging areaFeb. 23, 2013
    • Committing Staged FilesFeb. 23, 2013
    • Committing Staged Files git commit -m "message"Feb. 23, 2013
    • Committing Staged Files git commit -m "message" git-commit command commits all staged filesFeb. 23, 2013
    • Ignoring FilesFeb. 23, 2013
    • Ignoring Files • Blank lines or lines starting with # are ignored.Feb. 23, 2013
    • Ignoring Files • Blank lines or lines starting with # are ignored. • Standard glob patterns work.Feb. 23, 2013
    • Ignoring Files • Blank lines or lines starting with # are ignored. • Standard glob patterns work. • You can end patterns with a forward slash (/) to specify a directory.Feb. 23, 2013
    • Ignoring Files • Blank lines or lines starting with # are ignored. • Standard glob patterns work. • You can end patterns with a forward slash (/) to specify a directory. •You can negate a pattern by starting it with an exclamation point (!).Feb. 23, 2013
    • Staged and Unstaged ChangesFeb. 23, 2013
    • Staged and Unstaged Changes git diffFeb. 23, 2013
    • Staged and Unstaged Changes git diff  shows diff of what is modified but unstagedFeb. 23, 2013
    • Staged and Unstaged Changes git diff  shows diff of what is modified but unstaged git diff --stagedFeb. 23, 2013
    • Staged and Unstaged Changes git diff  shows diff of what is modified but unstaged git diff --staged shows the changes that will currently go into the next commit.Feb. 23, 2013
    • Removing FilesRenaming FilesTracking HistoryFeb. 23, 2013
    • Removing Files git rm [file/directory]Renaming FilesTracking HistoryFeb. 23, 2013
    • Removing Files git rm [file/directory]Renaming Files git mv current_file_name new_file_nameTracking HistoryFeb. 23, 2013
    • Removing Files git rm [file/directory]Renaming Files git mv current_file_name new_file_nameTracking History git logFeb. 23, 2013
    • Undoing ThingsFeb. 23, 2013
    • Undoing Things • Unstaging staged fileFeb. 23, 2013
    • Undoing Things • Unstaging staged file git reset HEAD <file>Feb. 23, 2013
    • Undoing Things • Unstaging staged file git reset HEAD <file> • Unmodifying modified fileFeb. 23, 2013
    • Undoing Things • Unstaging staged file git reset HEAD <file> • Unmodifying modified file git checkout -- <file>Feb. 23, 2013
    • Undoing Things • Unstaging staged file git reset HEAD <file> • Unmodifying modified file git checkout -- <file> These commands are actually suggested when running git-status commandFeb. 23, 2013
    • Sharing / Updating FilesFeb. 23, 2013
    • Sharing / Updating Files Remote RepositoriesFeb. 23, 2013
    • Sharing / Updating Files Remote Repositories are versions of your project that are hosted over the Internet or network somewhere.Feb. 23, 2013
    • Sharing / Updating Files Remote Repositories are versions of your project that are hosted over the Internet or network somewhere. • Show remote repositoryFeb. 23, 2013
    • Sharing / Updating Files Remote Repositories are versions of your project that are hosted over the Internet or network somewhere. • Show remote repository • Add remote repositoryFeb. 23, 2013
    • Sharing / Updating Files Remote Repositories are versions of your project that are hosted over the Internet or network somewhere. • Show remote repository • Add remote repository • Update/Sync remote repositoryFeb. 23, 2013
    • Sharing / Updating Files Remote Repositories are versions of your project that are hosted over the Internet or network somewhere. • Show remote repository • Add remote repository • Update/Sync remote repository • Inspect remote repositoryFeb. 23, 2013
    • Remote RepositoryFeb. 23, 2013
    • Remote Repository • Show remote repositoryFeb. 23, 2013
    • Remote Repository • Show remote repository git remote -vFeb. 23, 2013
    • Remote Repository • Show remote repository git remote -v • Add remote repositoryFeb. 23, 2013
    • Remote Repository • Show remote repository git remote -v • Add remote repository git remote add [alias] [repository url]Feb. 23, 2013
    • Remote Repository • Show remote repository git remote -v • Add remote repository git remote add [alias] [repository url] • Update remote repositoryFeb. 23, 2013
    • Remote Repository • Show remote repository git remote -v • Add remote repository git remote add [alias] [repository url] • Update remote repository git push [alias] [branch]Feb. 23, 2013
    • Remote Repository • Show remote repository git remote -v • Add remote repository git remote add [alias] [repository url] • Update remote repository git push [alias] [branch] • Sync with remoteFeb. 23, 2013
    • Remote Repository • Show remote repository git remote -v • Add remote repository git remote add [alias] [repository url] • Update remote repository git push [alias] [branch] • Sync with remote git pull [alias] [branch]Feb. 23, 2013
    • Remote Repository • Show remote repository git remote -v • Add remote repository git remote add [alias] [repository url] • Update remote repository git push [alias] [branch] • Sync with remote git pull [alias] [branch] • Inspect remote repositoryFeb. 23, 2013
    • Remote Repository • Show remote repository git remote -v • Add remote repository git remote add [alias] [repository url] • Update remote repository git push [alias] [branch] • Sync with remote git pull [alias] [branch] • Inspect remote repository git remote show [alias]Feb. 23, 2013