15
An Overview of Version Control

Version Control with Android Studio

Embed Size (px)

Citation preview

An Overview of Version Control

Table of Content :

What is Version control? What is git? Key Features of Git

1. History2. Branching3. Connectivity 4. Performance Git in Android Studio How to set up version control using Git.

Version control systems are a category of software

tools that help a software team manage changes to

source code over time and keeps track of every

modification to the code..

What is version control??

Git is a version control system(VCS) for tracking changes in computer files

It helps us to manage our project files . Git was created by the creator of

Linux operating system in 2005 for development. Git is similar to other

VCS such as– Subversion, and Mercurial etc

Git is a software tool, but github is a website GitHub.com, where

developers can store their projects.

Git the tool, GitHub the service for projects that use Git.

What is Github ??

Key Features of Git??

There are many feature of Git .Some of them are the

following.

1. History

2. Branching

3. Connectivity

4. Performance.

1 . History

Software developers teams are continually writing new

source code and changing existing code. One developer

on the team may be working on a new feature while

another developer can fix an unrelated issue or bug by

changing code .

2 . Performance

The raw performance characteristics of Git are very

strong when compared to other VCS. Committing new

changes, branching, merging. Source code files are

frequently renamed and rearranged.

3. Branching

Git supports branching from which developer can work on different

versions. A branch allows the developer to switch between these

versions so that he can work on different changes independently

from each other . It happens very fast in Git.

One of the biggest advantage of Git is branching. Using

branching feature does not effect the primary or master branch,

which allow us to work freely without effecting the live version.

4. Connectivity

We don’t need to have a internet connection for most of

the operations in git . This means that we can do commits

, branches, merging and more task offline . Since it always clone the whole history of the project,we

do not need any server access.

It is recommended that developer should use version

control software to keep its projects secure.

Android Studio comes inbuilt with a number of Version

Control Systems options .One of them is Git. To use of

Git,we have to signup for an account at github.com where

you are eligible to use private or public repository.

Git in Android Studio

Below are the steps on how to setup the

version control using Git for your project:

Get an Account: First, you will need an account with GitHub. If you

do not have one, set one up at https://github.com/join . (The account

is free for a public repository option. All projects in this course are

stored in public repositories. If you are going to be doing proprietary

work that you don't want others to be able to view, a private repository

costs $7/month for individuals.)

Choose a plan. You have two choice: Free and paid, the paid version

has private repositories with $7/month. You should try the free version

then have the suitable choice.

You finished! Your Github account created !

Installing Git in your android studio

Android studio has an inbuilt Git client. All we need is just

enable it and start using it.You need to have Git installed in your

system. You can download Git from http://git-

scm.com/downloads and install it.

1.In Android Studio enable the version control for the

project by, VCS –> Enable Version Control Integration

2.Now we have to run the git.exe file and set the path

for the git file

3.After that git is successfully set up in your android

studio

4.VCS > Enable Version Control... to Re-enable Git.

5.Then right click on the project root and select Git > Add to

add the entire project.

Below are some links that will help you to know about the

integration and push or pull your code to github:

Contact us for any assistance

www.cynoteck.com

Contact No: +1-612-800-9092,+918272014440,

+918430155522

Website : www.cynoteck.com

Email : [email protected]

Thank you