Git Basics. Git stores data as snapshots of the project over time When commit Save all the files If files have not changed, point to the previous identical.

Slides:



Advertisements
Similar presentations
Version Control CS440 – Introduction to Software Engineering © 2014 – John Bell Based on slides prepared by Jason Leigh for CS 340 University.
Advertisements

An Introduction By Sonali and Rasika.  Required for the project  Show the versions of your code in the course of development  Show versions of your.
Quick Guide To Git & Wiki. Why We Need Version Control Group projects – Prevents loss of code when trying to merge versions – Allows Individual projects.
Github. Download & install git   Git bash  Git GUI.
om om GIT - Tips & Tricks / git.dvcs git-tips.com
Introduction to git Alan Orth Nairobi, Kenya September, 2010 version control for serious hackers ;)
1 Web Design Workshop DIG 4104c Spring 2014 Dr. J. Michael Moshell University of Central Florida Lecture 2: The git source control system
1 CSE 390 “Lecture 11” Version control with Git slides created by Ruth Anderson, images from
Introduction to Git and Github Joshua imtraum.com.
BIT 285: ( Web) Application Programming Lecture 07 : Tuesday, January 27, 2015 Git.
Git: Part 1 Overview & Object Model These slides were largely cut-and-pasted from tutorial/, with some additions.
Git for Version Control These slides are heavily based on slides created by Ruth Anderson for CSE 390a. Thanks, Ruth! images taken from
Getting Started with GIT. Basic Navigation cd means change directory cd.. moves you up a level cd dir_name moves you to the folder named dir_name A dot.
Chapter - 2 What is “GIT” VERSION CONTROL AND GIT BASICS.
علیرضا فراهانی استاد درس: جعفری نژاد مهر Version Control ▪Version control is a system that records changes to a file or set of files over time so.
Peter Ogden and Josh Levine.  Motivation  High level overview  Walk through the common operations  How not to break things (too badly)
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 8-Oct-15.
Version Control Systems academy.zariba.com 1. Lecture Content 1.What is Software Configuration Management? 2.Version Control Systems (VCS) 3.Basic Git.
Git workflow and basic commands By: Anuj Sharma. Why git? Git is a distributed revision control system with an emphasis on speed, data integrity, and.
Team 708 – Hardwired Fusion Created by Nam Tran 2014.
Introduction to GitHub Alex Bigazzi Dec. 4, 2013 ITS Lab GitHub Introduction1.
1 GIT NOUN \’GIT\ A DISTRIBUTED REVISION CONTROL AND SOURCE CODE MANAGEMENT (SCM) SYSTEM WITH AN EMPHASIS ON SPEED. INITIALLY DESIGNED AND DEVELOPED BY.
Sofia Event Center May 2014 Martin Kulov Git For TFS Developers.
GIT.
Intro to Git presented by Brian K. Vagnini Hosted by.
Лекция 1 Обзор курса и средств разработки. Система поддержки версий GIT ls -la total.
Lecture 2 Making Simple Commits Sign in on the attendance sheet! credit:
Introduction to Git Yonglei Tao GVSU. Version Control Systems  Also known as Source Code Management systems  Increase your productivity by allowing.
© 2015 by Herb Holyst Introduction to git Cytomics Workshop December, 2015.
INTRODUCTION TO GIT. Install Egit for eclipse Open eclipse->Help->Install New Software Search for one of the following -
Technical Presentation by: David Spano. About Git (VCS) Simple Git Commands Branching Github Git GUI Summary.
Git How to 1. Why Git To resolve problems in lab exams (accidental deletions) Use existing Libraries with ease (Statistics and Computer) Prepare undergraduates.
Using Git with collaboration, code review, and code management for open source and private projects. & Using Terminal to create, and push commits to repositories.
1 Ivan Marsic Rutgers University LECTURE 2: Software Configuration Management.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
BIT 285: ( Web) Application Programming Lecture 07 : Tuesday, January 27, 2015 Git.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 28-Jun-16.
Problem Solving With C++ SVN ( Version Control ) April 2016.
Jun-Ru Chang Introduction GIT Jun-Ru Chang
KIT – University of the State of Baden-Wuerttemberg and National Research Center of the Helmholtz Association STEINBUCH CENTRE FOR COMPUTING - SCC
M.Sc. Juan Carlos Olivares Rojas
L – Modeling and Simulating Social Systems with MATLAB
Discussion #11 11/21/16.
L – Modeling and Simulating Social Systems with MATLAB
CReSIS Git Tutorial.
Git-Github Safa Prepared for the course COP4331 – Fall 2016.
Git Practice walkthrough.
CS/COE 1520 Recitation Week 2
L – Modeling and Simulating Social Systems with MATLAB
SSE2034: System Software Experiment 3 Spring 2016
Discussion 11 Final Project / Git.
L – Modeling and Simulating Social Systems with MATLAB
Version Control overview
Sign in on the attendance sheet!
An introduction to version control systems with Git
Distributed Version Control with git
An introduction to version control systems with Git
SIG: Open Week 1: GitHub Tim Choh.
An introduction to version control systems with Git
Git-Github Tools Prepared for COP4331. Git-Github Tools Prepared for COP4331.
EGit in CCS
Source Code Repository
Version control with Git Part II
Version control with Git
Introduction to Git and GitHub
Convert an Eclipse Project to a Git repository and push up to GitHub
Қазақ Ұлттық Техникалық Зерттеу Университеті
Version Control with Git and GitHub
Git GitHub.
Presentation transcript:

Git Basics

Git stores data as snapshots of the project over time When commit Save all the files If files have not changed, point to the previous identical file To be more efficient Create a ID to reference the commit ID=SHA1

Other SCM systems Other systems tend to store data as changes to a base version of each file.

Initializing a Repository in an Existing Directory Create a folder Inside the folder $ git init

.git Folder Init command creates.git folder Local repository Invisible folder To display invisible folders $ ls -la

Inside.git folder $ ls –l.git

Your Identity Keep tracking of who worked on the code Name Example $ git config --global user.name "John Doe" $ git config --global user. Identify is save in.gitconfig –Under the home foler

Cat.gitconfig Show the configuration information

Adding and Committing

Staging Area Before and after git add

Recover files from.git You can recover them from.git (local repository) After deleting files from working directory