scm (source control management) - git basic

23
SCM - GIT Advanced Level - Aman Patial - Nirbhay K BY EVERYTHING AND ANYTHING I.T

Upload: aman-patial

Post on 30-Nov-2014

122 views

Category:

Technology


2 download

DESCRIPTION

Source code management (SCM)) is the management of multiple revisions of the same unit of information. This is explained using gitlab tool.

TRANSCRIPT

Page 1: SCM (Source Control Management) - Git Basic

SCM - GITAdvanced Level

- Aman Patial- Nirbhay K

BY EVERYTHING AND ANYTHING I.T

Page 2: SCM (Source Control Management) - Git Basic

SCM INTRODUCTION

Page 3: SCM (Source Control Management) - Git Basic

SCM TYPES

Local version control Centralized Version Control Distributed Version Control

Page 4: SCM (Source Control Management) - Git Basic

Local Version Control

Page 5: SCM (Source Control Management) - Git Basic

Centralized Version Control

Page 6: SCM (Source Control Management) - Git Basic

Distributed Version Control

Page 7: SCM (Source Control Management) - Git Basic

GIT- Introduction

What is GIT History Confusions related to GIT

Page 8: SCM (Source Control Management) - Git Basic

What is GIT

Git /ɡɪt/ is a distributed revision control and source code management (SCM) system with an emphasis on speed.

- Version control- Fast- Distributed- Free and open source

Page 9: SCM (Source Control Management) - Git Basic

History

Initial release : 7th April 2005 Original Author : Linus Torvalds Written in : C, Bourne Shell, Tcl, Perl OS : Linux, Mac, Windows, POSIX A tale behind stupid content tracker Git man page : http://goo.gl/up0ygi

Page 10: SCM (Source Control Management) - Git Basic

Confusion

Git / JIT Git / Gitlab / Github

Page 11: SCM (Source Control Management) - Git Basic

Comparison

GIT vs SVN GIT vs TFS Conclusion

Page 12: SCM (Source Control Management) - Git Basic

GIT vs. SVN

Speed Size of repositories Distributed Better auditing of branches Simple repository format Better UI tool support Offline commits

Page 13: SCM (Source Control Management) - Git Basic

GIT vs TFS

Offline access to history Offline commit Private local branches Free and open source Safe merge between related branches

Page 14: SCM (Source Control Management) - Git Basic

Conclusion

Git is really, really awesome – beats the pants off of SVN or any other version control system. That’s why it is popular among developer communities.

Page 15: SCM (Source Control Management) - Git Basic

SCM-Best Practices

Commit related changes Test code before you commit Use branches Commit often Write commit messages Agree on a workflow Don’t commit half done work

Page 16: SCM (Source Control Management) - Git Basic

DIY Session

Page 17: SCM (Source Control Management) - Git Basic

Prerequisites for session Sign in to http://code.above-inc.com with your above id. Windows

Download and install git from http://git-scm.comDownload and install Source Tree from

http://www.sourcetreeapp.com/ Mac

Brew install gitDownload and install Source Tree from

http://www.sourcetreeapp.com/ Linux

Sudo apt-get install gitInstall gitk and git gui

Page 18: SCM (Source Control Management) - Git Basic

Overview Noob Level

Working with workflow Git terminologies Git initials

Page 19: SCM (Source Control Management) - Git Basic

Working with workflow

Walkthrough Above-Inc Hosted GITLAB

{Demo}

Page 20: SCM (Source Control Management) - Git Basic

GIT Terminologies

Clone Commit Push Pull Origin HEAD Stage Merge ssh keys

Page 21: SCM (Source Control Management) - Git Basic

Git Initials

git clone <repository path> git add <file path> git commit <file path> git push origin <branch name> git pull git stash

Page 22: SCM (Source Control Management) - Git Basic

Take Away

Git Cheat Sheets http://git-scm.com/videos http://git-scm.com/doc/ext http://git-scm.com/blog

Page 23: SCM (Source Control Management) - Git Basic

Q&A

For NOOB LEVEL – Day 1

THANKS