0% found this document useful (0 votes)
32 views

What Is Git? - Distributed Version Control System - Allows Versions of Project - Ease To Collaborate

This document provides an overview of Git, including why it is useful, how repositories work, and common commands. Git is a distributed version control system that allows tracking the state of and collaborating on projects. It allows offline work and concurrent changes through branches that can be merged together. The document outlines setting up repositories, adding and committing changes, pushing and pulling to remote repositories, branching, and merging branches.

Uploaded by

Rajesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

What Is Git? - Distributed Version Control System - Allows Versions of Project - Ease To Collaborate

This document provides an overview of Git, including why it is useful, how repositories work, and common commands. Git is a distributed version control system that allows tracking the state of and collaborating on projects. It allows offline work and concurrent changes through branches that can be merged together. The document outlines setting up repositories, adding and committing changes, pushing and pulling to remote repositories, branching, and merging branches.

Uploaded by

Rajesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

- What is Git?

Overview - Distributed version control system

- Allows versions of project

- Ease to collaborate
- Why Git

Why - Tracks state, history

- Allow offline work

- Allow work Concurrently

- Continues integration
- Repository

Agenda - Add/Commit

- Push/Pull

- Branch

- Merge
let’s Start
Repository - New Repository
$ git init

- Existing Repository
$ git clone <URL>
- Add changes to Staging
Add & Commit $ git add <filename>
or
$ git add .

- Save changes with message


$ git commit -m "message"
- Saving changes to remote repository
Push & Pull
$ git push origin master

- Fetching changes if any in remote repository


$ git pull origin master
Branch
- Creating new branch from HEAD/Master
$ git checkout -b <branch name>
Merge
- Merging new branch into master
$ git merge <branch-to-merge>
- Thanks
- Reference
http://git-scm.com/documentation
https://services.github.com/on-
demand/downloads/github-git-cheat-
sheet.pdf

You might also like