Introduction to Git
What is Git and Github?Git is an extremely fast, efficient, distributedversion control system used for collaborativedevelo...
Working with Git locally● Creating Projects            $ git init● Adding Files to Staging Area    $ git add . (add all fi...
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 anoth...
Git Branching  $git branch  (lists existing branch)● Merge branch  $git merge [branchname]● Read the commit history  $git ...
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 ...
Working remotely with Git● Updating from a remote repository  $ git pull● Updating a remote repository     $git push [alia...
Best practices●   Always do small, logical commits●   Do keep up to date●   Always review code before committing it●   Do ...
Upcoming SlideShare
Loading in...5
×

Introduction To Git

425

Published on

3 Comments
3 Likes
Statistics
Notes
No Downloads
Views
Total Views
425
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
25
Comments
3
Likes
3
Embeds 0
No embeds

No notes for slide

Introduction To Git

  1. 1. Introduction to Git
  2. 2. 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.
  3. 3. Working with Git locally● Creating Projects $ git init● Adding Files to Staging Area $ git add . (add all files recursively) $ git add * (add all files)
  4. 4. Working with Git locally● Checking the status of the project $ git status
  5. 5. Working with Git locally● Committing changes $ git commit -m first commit
  6. 6. Git Branching
  7. 7. Git Branching● Branch Command $ git branch [branchname] (creates a branch) $git checkout [branchname] (switch to another branch)
  8. 8. Git Branching $git branch (lists existing branch)● Merge branch $git merge [branchname]● Read the commit history $git log
  9. 9. Working remotely with git
  10. 10. Working remotely with Git
  11. 11. Working remotely with Git● Getting the copy of repository $git clone [url]● Adding a remote repository $ git remote add [alias] [url]
  12. 12. Working remotely with Git● Updating from a remote repository $ git pull● Updating a remote repository $git push [alias] [branch]
  13. 13. Best practices● Always do small, logical commits● Do keep up to date● Always review code before committing it● Do useful tools (eg. sourcetree)
  1. A particular slide catching your eye?

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

×