• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Introduction To Git
 

Introduction To Git

on

  • 470 views

 

Statistics

Views

Total Views
470
Views on SlideShare
470
Embed Views
0

Actions

Likes
3
Downloads
21
Comments
3

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

13 of 3 previous next Post a comment

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

    Introduction To Git Introduction To Git Presentation Transcript

    • Introduction to Git
    • What is Git and Github?Git is an extremely fast, efficient, distributedversion control system used for collaborativedevelopment of software. Git was designed anddeveloped by Linus Torvalds.Github is a web based hosting service forsoftware development projects that use the Gitrevision control system.
    • Working with Git locally● Creating Projects $ git init● Adding Files to Staging Area $ git add . (add all files recursively) $ git add * (add all files)
    • Working with Git locally● Checking the status of the project $ git status
    • Working with Git locally● Committing changes $ git commit -m first commit
    • Git Branching
    • Git Branching● Branch Command $ git branch [branchname] (creates a branch) $git checkout [branchname] (switch to another branch)
    • Git Branching $git branch (lists existing branch)● Merge branch $git merge [branchname]● Read the commit history $git log
    • Working remotely with git
    • Working remotely with Git
    • Working remotely with Git● Getting the copy of repository $git clone [url]● Adding a remote repository $ git remote add [alias] [url]
    • Working remotely with Git● Updating from a remote repository $ git pull● Updating a remote repository $git push [alias] [branch]
    • Best practices● Always do small, logical commits● Do keep up to date● Always review code before committing it● Do useful tools (eg. sourcetree)