Top Banner
The Git Basics brought by Blaze Hadzik and
16
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Git Basics

The Git Basicsbrought by Blaze Hadzik and

Page 2: The Git Basics

Version control is an essential tool if you want to be successful in today's web & software world.

2

Page 3: The Git Basics

How does it work?

3

Page 4: The Git Basics

Project Flow

4

Page 5: The Git Basics

Version Control Concept

Version Control

5

Page 6: The Git Basics

Particular Change

24/02/01

“Add New Button”

John Wozniak

6

Page 7: The Git Basics

Restore changes anytime

24/02/01 - restore

7

Page 8: The Git Basics

Idea Of Branches

Rails upgrade

New Layout Database Switch

MASTER

8

Page 9: The Git Basics

Collaborating

index.html.erb show.html.erb

9

Page 10: The Git Basics

How to start with it?

10

Page 11: The Git Basics

11

Init a repository

git init

Page 12: The Git Basics

12

… or clone existing one.

git clone git://git.kernel.org/pub/scm/.../linux.git

Page 13: The Git Basics

13

Do some changes

git commit -am ‘Add New Menu’

Page 14: The Git Basics

14

Add origin

git remote add origin https://github.com/user/repo.git

Page 15: The Git Basics

15

Push your code

git push

Page 16: The Git Basics

Thanks

16