SCM (Source Control Management) - Git Basic

Post on 30-Nov-2014

122 views 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 of SCM (Source Control Management) - Git Basic

SCM - GITAdvanced Level

- Aman Patial- Nirbhay K

BY EVERYTHING AND ANYTHING I.T

SCM INTRODUCTION

SCM TYPES

Local version control Centralized Version Control Distributed Version Control

Local Version Control

Centralized Version Control

Distributed Version Control

GIT- Introduction

What is GIT History Confusions related to GIT

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

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

Confusion

Git / JIT Git / Gitlab / Github

Comparison

GIT vs SVN GIT vs TFS Conclusion

GIT vs. SVN

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

GIT vs TFS

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

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.

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

DIY Session

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

Overview Noob Level

Working with workflow Git terminologies Git initials

Working with workflow

Walkthrough Above-Inc Hosted GITLAB

{Demo}

GIT Terminologies

Clone Commit Push Pull Origin HEAD Stage Merge ssh keys

Git Initials

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

Take Away

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

Q&A

For NOOB LEVEL – Day 1

THANKS