Jun-Ru Chang jrjang@gmail.com Introduction GIT Jun-Ru Chang jrjang@gmail.com.

Slides:



Advertisements
Similar presentations
Introduction To GIT Rob Di Marco Philly Linux Users Group July 14, 2008.
Advertisements

Github. Download & install git   Git bash  Git GUI.
1 CSE 390 “Lecture 11” Version control with Git slides created by Ruth Anderson, images from
Introduction to Git and Github Joshua imtraum.com.
Git for Version Control These slides are heavily based on slides created by Ruth Anderson for CSE 390a. Thanks, Ruth! images taken from
Fundamentals of Git By Zachary Ling 29 th, Aug,
علیرضا فراهانی استاد درس: جعفری نژاد مهر 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)
Version control Using Git Version control, using Git1.
ITEC 370 Lecture 16 Implementation. Review Questions? Design document on F, feedback tomorrow Midterm on F Implementation –Management (MMM) –Team roles.
Version Control Systems academy.zariba.com 1. Lecture Content 1.What is Software Configuration Management? 2.Version Control Systems (VCS) 3.Basic Git.
Team 708 – Hardwired Fusion Created by Nam Tran 2014.
1 GIT NOUN \’GIT\ A DISTRIBUTED REVISION CONTROL AND SOURCE CODE MANAGEMENT (SCM) SYSTEM WITH AN EMPHASIS ON SPEED. INITIALLY DESIGNED AND DEVELOPED BY.
Version Control Systems. Version Control Manage changes to software code – Preserve history – Facilitate multiple users / versions.
Sofia Event Center May 2014 Martin Kulov Git For TFS Developers.
Version Control System Lisa Palathingal 03/04/2015.
GIT.
Intro to Git presented by Brian K. Vagnini Hosted by.
Introduction to Git Yonglei Tao GVSU. Version Control Systems  Also known as Source Code Management systems  Increase your productivity by allowing.
It’s not just an insult from Harry Potter!. What is Git? Distributed Version Control System (DVCS) – Compared to a Centralized Version Control System.
Introduction to Git - Chirag Dani. Objectives Basics of Git Understanding different “Mindset of Git” Demo - Git with Visual Studio.
INTRODUCTION TO GIT. Install Egit for eclipse Open eclipse->Help->Install New Software Search for one of the following -
Git How to 1. Why Git To resolve problems in lab exams (accidental deletions) Use existing Libraries with ease (Statistics and Computer) Prepare undergraduates.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 28-Jun-16.
GIT Version control. Version Control Sharing code via a centralized DB Also provides for Backtracking (going back to a previous version of code), Branching.
Backing up a machine with git
KIT – University of the State of Baden-Wuerttemberg and National Research Center of the Helmholtz Association STEINBUCH CENTRE FOR COMPUTING - SCC
Introduction to Git and git-svn Paul Gier Red Hat Sept. 27, 2011.
Basics of GIT for developers and system administrators
M.Sc. Juan Carlos Olivares Rojas
L – Modeling and Simulating Social Systems with MATLAB
I Don’t Git It: A beginner’s guide to git Presented by Mathew Robinson
Primož Gabrijelčič Git for Programmers Primož Gabrijelčič
Version Control Systems
CReSIS Git Tutorial.
Version control with Git
CS/COE 1520 Recitation Week 2
Setting up Git, GitBash, and GitHub
SSE2034: System Software Experiment 3 Spring 2016
Version Control overview
Version control, using Git
Version control with Git
Version Control System using Git
Storing, Sending, and Tracking Files Recitation 2
Version control with Git
An introduction to version control systems with Git
SU Development Forum Introduction to Git - Save your projects!
Distributed Version Control with git
Akshay Narayan git up to speed with RCS Akshay Narayan
An introduction to version control systems with Git
Version Control with git
The Big Picture
SIG: Open Week 1: GitHub Tim Choh.
Setting up Git, GitBash, and GitHub
An introduction to version control systems with Git
Version control with Git
Version control with Git
Version control with Git
Version Control System - Git
Version control with Git
Version control with Git
Introduction to Git and GitHub
Қазақ Ұлттық Техникалық Зерттеу Университеті
Version Control with Git
Version Control with Git and GitHub
Git Introduction.
Git GitHub.
Introduction to The Git Version Control System
CSE 391 Lecture 9 Version control with Git
Presentation transcript:

Jun-Ru Chang jrjang@gmail.com Introduction GIT Jun-Ru Chang jrjang@gmail.com

Outline Introduction VCS Introduction GIT

Introduction VCS VCS: Version Control System We will be known forever by the tracks we leave Automatic backup Sharing on multiple computers Version control and branching Logging where be changed

Introduction VCS

Introduction VCS Local VCS

Introduction VCS Centralized VCS Subversion (SVN) checkout update commit

Introduction VCS Distributed VCS GIT

Introduction GIT

Introduction GIT Linus Torvalds Orignally using VCS developed by BitKeeper Feature Fast Decentralize revsion control

Introduction GIT Git basics Snapshot, not differences Nearly every operation is local Three stages

Introduction GIT

Introduction GIT

Introduction GIT Github msysgit https://github.com/ http://code.google.com/p/msysgit/downloads/ detail?name=PortableGit-1.7.10- preview20120409.7z&can=2&q=

Introduction GIT Register account on Github Unzip msysgit Generate key $ ssh-keygen -t rsa -C "user@email" Import public key into Github $ ssh -T git@github.com Create a new repository

Introduction GIT $ git config --global user.name "user1" $ git config --global user.email "user1@email"

Introduction GIT $ mkdir test; cd test Getting a repository importing existing project or directory into git $ git init $ git remote add origin git@github.com:user1/test.git cloning an existing git repository from another server $ git clone git@github.com:jrjang/ppt.git

Introduction GIT git add git rm git mv git diff git commit git log $ touch test1.c $ touch test2.c $ git add test1.c test2.c $ git commit -c "xxx" $ git rm test2.c $ git mv test1.c test.c $ git status $ git commit -c "yyy" $ git log $ echo "test" > test.c $ git diff

Introduction GIT git status

Introduction GIT git commit --amend git reset HEAD file $ touch test3.c $ git add test3.c $ git reset HEAD test3.c

Introduction GIT Working with remotes $ git push origin master git pull git push $ git push origin master $ git pull git@github.com:user1 /test.git

Introduction GIT What a branch is

Introduction GIT

Introduction GIT

Introduction GIT git checkout git branch

Introduction GIT

Introduction GIT

Introduction GIT

Introduction GIT $ git checkout -b testing $ git branch $ touch haha.c $ git add haha.c $ git commit -c "in testing" $ git checkout master $ touch hehe.c $ git add hehe.c $ git commit -c "in master" $ git show-branch

Introduction GIT git checkout master git checkout -b hotfix

Introduction GIT $ git checkout master $ git merge hotfix $ git branch -D hotfix

Introduction GIT

Introduction GIT

Introduction GIT Conflict git status edit the conflict files git commit <<<<<<<HEAD:test.c ======= >>>>>>>iss53:test.c