SSE2034: System Software Experiment 3 Spring 2016

Slides:



Advertisements
Similar presentations
Introduction To GIT Rob Di Marco Philly Linux Users Group July 14, 2008.
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.
Github. Download & install git   Git bash  Git GUI.
om om GIT - Tips & Tricks / git.dvcs git-tips.com
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
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.
علیرضا فراهانی استاد درس: جعفری نژاد مهر 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)
1 Introductory Notes on the Git Source Control Management Ric Holt, 8 Oct 2009.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 8-Oct-15.
ITEC 370 Lecture 16 Implementation. Review Questions? Design document on F, feedback tomorrow Midterm on F Implementation –Management (MMM) –Team roles.
Drexel University Software Engineering Research Group Git for SE101 1.
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.
SWEN 302: AGILE METHODS Roma Klapaukh & Alex Potanin.
Team 708 – Hardwired Fusion Created by Nam Tran 2014.
Git : Part 2 Checkout, Add, Commit These slides were largely cut-and-pasted from tutorial/, with some additions.
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.
Git Super Basics. What is Git? Version Control System (VCS) Successor to SVN in the Drupal eco-system A tool.
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.
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.
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. 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.
Carl’s Ultra-Basic Guide to the Command Line and Git Carl G. Stahmer Director of Digital Scholarship cstahmer UD Davis Data Science.
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.
Jun-Ru Chang Introduction GIT Jun-Ru Chang
GIT Version control. Version Control Sharing code via a centralized DB Also provides for Backtracking (going back to a previous version of code), Branching.
Git for bzr users October Aurélien Gâteau An attempt at making you comfortable when you have to work with a git repository.
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
Basics of GIT for developers and system administrators
M.Sc. Juan Carlos Olivares Rojas
L – Modeling and Simulating Social Systems with MATLAB
11 Version control (part 2)
CReSIS Git Tutorial.
Git-Github Safa Prepared for the course COP4331 – Fall 2016.
Git Practice walkthrough.
Version Control overview
Learning GIT CodicePlastico.com.
Software Engineering for Data Scientists
Sign in on the attendance sheet!
Lab 1 introduction, debrief
An introduction to version control systems with Git
Distributed Version Control with git
Akshay Narayan git up to speed with RCS Akshay Narayan
An introduction to version control systems with Git
The Big Picture
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.
Source Code Repository
Version Control System - Git
Version control with Git
Introduction to Git and GitHub
Қазақ Ұлттық Техникалық Зерттеу Университеті
Version Control with Git
Version Control with Git and GitHub
Git GitHub.
Introduction to The Git Version Control System
Advanced Git for Beginners
Presentation transcript:

SSE2034: System Software Experiment 3 Spring 2016 Jinkyu Jeong (jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu

git Distributed version control system

git tutorial User setup Create repository Commit Multi version History New Clone Commit Multi version Branch, checkout, etc. History Log, diff, etc.

User Setup git config --global user.name ”user name” git config --global user.email you@yourdo main.example.com

New Repository Create new repository mkdir ~/source_code cd ~/source_code git init JeongHwanjinui-MacBook-Air:~ Hwanjin$ mkdir ~/source_code JeongHwanjinui-MacBook-Air:~ Hwanjin$ cd source_code/ JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git init Initialized empty Git repository in /Users/Hwanjin/source_code/.git/ JeongHwanjinui-MacBook-Air:source_code Hwanjin$ ls -al total 0 drwxr-xr-x 3 Hwanjin staff 102 5 17 17:20 . drwxr-xr-x+ 36 Hwanjin staff 1224 5 17 17:19 .. drwxr-xr-x 10 Hwanjin staff 340 5 17 17:20 .git

Clone Repository Local clone Remote clone git clone ~/source_code Remote clone git clone userid@host:~/source_code Ex) git clone https://github.com/hwanjinje ong/emacs_config CS258 S99

commit git add <file name> or * git commit –m “message” add mv Add file contents to the index mv Move or rename a file, a directory, or a symlink reset Reset current HEAD to the specified state rm Remove files from the working tree and from the index JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git add * JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git commit -m "first commit" [master (root-commit) 0c9021e] first commit

Pull & Push Push your committed changes to the rem ote master repository Pull changes pushed to remote master int o your local copy

Pull & Push git push <local> <remote> git pull Ex) git push origin master git pull

Branch Grow, mark and tweak common history

Branch JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git branch * master JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git branch test JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git branch test1 test test1 JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git branch -d test1 Deleted branch test1 (was 0c9021e). JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git branch * master test

Checkout

Checkout JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git branch master * test JeongHwanjinui-MacBook-Air:source_code Hwanjin$ ls -al test_file -rw-r--r-- 1 Hwanjin staff 5 5 17 17:44 test_file JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git checkout master Switched to branch 'master' -rw-r--r-- 1 Hwanjin staff 0 5 17 17:45 test_file JeongHwanjinui-MacBook-Air:source_code Hwanjin$

History - log git log JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git log commit 6029ac48c225494129414e59bb3a5cfa47c493d2 Author: Hwanjin Jeong <Hwanjin@JeongHwanjinui-MacBook-Air.local> Date: Tue May 17 17:44:10 2016 +0900 test commit 0c9021ea35fa43875444f6e203f436586ad92d28 Date: Tue May 17 17:27:42 2016 +0900 first commit

History - diff git diff <commit log id> JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git diff 0c9021ea35fa43875444f6e203f436586ad92d28 diff --git a/test_file b/test_file index e69de29..9daeafb 100644 --- a/test_file +++ b/test_file @@ -0,0 +1 @@ +test

Reset git reset --hard <commit log id> JeongHwanjinui-MacBook-Air:source_code Hwanjin$ ls -al test_file -rw-r--r-- 1 Hwanjin staff 5 5 17 17:46 test_file JeongHwanjinui-MacBook-Air:source_code Hwanjin$ git reset --hard 0c9021ea35fa43875444f6e203f436586ad92d28 HEAD is now at 0c9021e first commit -rw-r--r-- 1 Hwanjin staff 0 5 17 17:49 test_file

Github https://guides.github.com/activities/hello- world/#repository