Transcript
Page 1: VCS. Three letters that can change your life

VCSThree letters that can change your life

Page 2: VCS. Three letters that can change your life

WHY DO I TALK ABOUT THIS?

Page 3: VCS. Three letters that can change your life

MEET MAIN CHARACTERSThis is a story with a few characters. Let meet

them!

Page 4: VCS. Three letters that can change your life

Cthulhu The Cute

Page 5: VCS. Three letters that can change your life

Twilight The Gentoo Pony

Page 6: VCS. Three letters that can change your life

Shadow The Gamer

Page 7: VCS. Three letters that can change your life

ONCE UPON A TIME IN R'LYEHPROGRAMMING UNIVERSITY...

Page 8: VCS. Three letters that can change your life

Shadow played games the whole semester. Atthe end of the semester he had to do a lot of

tasks but he did not know how.

Page 9: VCS. Three letters that can change your life

So he asked Twilight for help

Page 10: VCS. Three letters that can change your life

And then the terrible thing happened

Page 11: VCS. Three letters that can change your life
Page 12: VCS. Three letters that can change your life

CUTE CTHULHU'S WISE WORDS:

Page 13: VCS. Three letters that can change your life

SO WHY DO I TALK ABOUTTHIS?

Page 14: VCS. Three letters that can change your life

BECAUSE...Sharing source code as attachments in social

networks is like using stone instrumentsnowadays

Page 15: VCS. Three letters that can change your life

BECAUSE...Version control systems simplify software

development

Especially when several people work on thesame code together

Page 16: VCS. Three letters that can change your life

BECAUSE...It is vital to programmer to know how to use

version control systems

Page 17: VCS. Three letters that can change your life

BORING PART

Page 18: VCS. Three letters that can change your life

WHAT IS VERSION CONTROLSYSTEM?

“ Version control is a system thatrecords changes to a file or set of

files over time so that you canrecall specific versions later.”

Page 19: VCS. Three letters that can change your life

GOALS OF VCSAllow developers to work simultaneously.

Do not overwrite each other’s changes.

Maintain history of every version ofeverything.

Page 20: VCS. Three letters that can change your life

VCS CLASSIFICATIONCentralized version control systems (CVCS)

Distributed version control systems (DVCS)

Page 21: VCS. Three letters that can change your life

CENTRALIZED VCSThere is a single “central” copy of your projectsomewhere, and programmers commit their

changes to this central copy.

Page 22: VCS. Three letters that can change your life

CVCS WORKFLOW1. Pull down any changes other people have

made from the central server.

2. Make your changes, and make sure theywork properly.

3. Commit your changes to the central server,so other programmers can see them.

Page 23: VCS. Three letters that can change your life

DISTRIBUTED VCSDo not necessarily rely on a central server to

store all the versions of a project’s files.

Every developer clones a copy of a repositoryand has the full history of the project on their

own hard drive

Page 24: VCS. Three letters that can change your life

ADVANTAGES OVER CVCSFaster

Nobody sees unfinished work

Less dependent on Internet

Page 25: VCS. Three letters that can change your life

VERSION CONTROL SYSTEMSAbout 46 VCS exist now ( )https://goo.gl/imTGhs

Page 26: VCS. Three letters that can change your life

THE MOST POPULAR VCSSubversion

Git

Mercurial

Page 27: VCS. Three letters that can change your life

INTERESTING PART

Page 28: VCS. Three letters that can change your life

HELLO, GIT!

Page 29: VCS. Three letters that can change your life

INITIALIZE AN EMPTYREPOSITORY

git init

Page 30: VCS. Three letters that can change your life

ADD FILESgit add

Page 31: VCS. Three letters that can change your life

COMMIT CHANGESgit commit

Page 32: VCS. Three letters that can change your life

WHAT IS YOUR STATUS?git status

Page 33: VCS. Three letters that can change your life

LOCAL HISTORYgit log

Page 34: VCS. Three letters that can change your life

 

Page 35: VCS. Three letters that can change your life

BRANCHESgit branch

Page 36: VCS. Three letters that can change your life

SWITCH WORKING TREEgit checkout

Page 37: VCS. Three letters that can change your life

GET IT TOGETHERgit merge

Page 38: VCS. Three letters that can change your life

PUT ONE ONTO ANOTHERgit rebase

Page 39: VCS. Three letters that can change your life

WORKING IN TEAM

Page 40: VCS. Three letters that can change your life

REMOTESgit remote add <name> <address>

Page 41: VCS. Three letters that can change your life

SEND COMMITS TO REMOTEgit push <remote> <branch>

Page 42: VCS. Three letters that can change your life

UPDATE FROM REMOTEgit fetch <remote>git pull <remote>

Page 43: VCS. Three letters that can change your life

WHAT TO READ NEXT?

Page 44: VCS. Three letters that can change your life

GITGit documentation

Atlassian tutorials about git

Git in 15 minutes

Git tree planting

What to do if you messed your Git repository

Page 45: VCS. Three letters that can change your life

MERCURIALMercurial official website

Great Mercurial tutorial

Comparison of Git and Mercurial

Working qwith bookmarks

Page 46: VCS. Three letters that can change your life

Presentation by Oleksandr Kovalchuk

Page 47: VCS. Three letters that can change your life

THE ENDANY QUESTIONS?


Recommended