Peter Ogden and Josh Levine.  Motivation  High level overview  Walk through the common operations  How not to break things (too badly)

Slides:



Advertisements
Similar presentations
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.
Advertisements

Simple Git Steve Pieper. Topics Git considerations and Slicer Git as if it were svn Git the way it is meant to be.
Github. Download & install git   Git bash  Git GUI.
Git/Unix Lab March Version Control ●Keep track of changes to a project ●Serves as a backup ●Revert to previous version ●Work on the same files concurrently.
Version Control with git. Version Control Version control is a system that records changes to a file or set of files over time so that you can recall.
Git
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.
Distributed Version Control. Image stolen from which is really good, go read it.  Old-school version control.
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,
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.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 8-Oct-15.
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.
Information Systems and Network Engineering Laboratory II DR. KEN COSH WEEK 1.
Version Control.
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.
1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall
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.
Falcons Git Usage Andre Pool Version 2.0 October 2015 / Veldhoven.
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.
Information Systems and Network Engineering Laboratory I DR. KEN COSH WEEK 1.
Introduction to Git - Chirag Dani. Objectives Basics of Git Understanding different “Mindset of Git” Demo - Git with Visual Studio.
GIT: What, how and why ? Part 1: Basics. What do I know about git? Started using it for experiments on April 2009 Moved all voms development on git on.
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.
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.
Jun-Ru Chang Introduction GIT Jun-Ru Chang
Backing up a machine with git
Basics of GIT for developers and system administrators
CS5220 Advanced Topics in Web Programming Version Control with Git
Information Systems and Network Engineering Laboratory II
CReSIS Git Tutorial.
Git-Github Safa Prepared for the course COP4331 – Fall 2016.
Git Practice walkthrough.
SSE2034: System Software Experiment 3 Spring 2016
CS5220 Advanced Topics in Web Programming Version Control with Git
An introduction to version control systems with Git
Version Control with Git accelerated tutorial for busy academics
Distributed Version Control with git
Akshay Narayan git up to speed with RCS Akshay Narayan
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
Version control with Git Part II
Version Control System - Git
Version control with Git
Introduction to Git and GitHub
Git started with git: 2018 edition
Version Control with Git
Version Control with Git and GitHub
Git GitHub.
Advanced Git for Beginners
Presentation transcript:

Peter Ogden and Josh Levine

 Motivation  High level overview  Walk through the common operations  How not to break things (too badly)

 Detailed usage  Command reference  Internal functionality  Advanced topics

 Do you… ◦ Use more than one computer? ◦ Collaborate? ◦ Break stuff in unknown ways? ◦ Backup?

 Widely used in the open source community ◦ Linux, KDE, LLVM, Github  Supported natively in CAS  Available for every platform  Wide variety of tools and interfaces  Offline working

 Visible files ◦ Current state of the folder  Hidden history ◦ Collection of commits ◦ Reference to the current commit

 Contains a diff  Has metadata ◦ Message ◦ Time ◦ Author  Linked to previous commit  Commit ID is the hash of everything

 All communication is explicit  Push to put things in a remote repository  Pull to bring things from a remote repository

Setting up a new repository

 Terminology ◦ Tracked – files known to git ◦ Index – files to be committed ◦ Staged – changes in the index adding Untracked Unstaged committing In indexCommitted

Committing and pushing

 Two stages in pulling ◦ Fetch all commits from the remote server ◦ Update the local version with remote changes  Conflicts ◦ Someone else may have changed the file ◦ Git will try to apply all changes ◦ May require help

The push will fail - “non fast-forward”

Collaborative working

 Only add files you mean to ◦ thumbs.db ◦.trash ◦ vim temporary files  Failing to pull before a push  Make sure everything is committed before pulling

 Set name and ◦git config --global user. ◦git config --global user.name “Peter Ogden”  Initialise an empty repository ◦git init  Committing work

 Create remote repository - e.g. on ee-casgit  Add remote server ◦ git remote add origin  Push to server ◦ git push origin HEAD Remote to push to Commit to push

 What is the current state of the repository? ◦git status  What has changed since last commit? ◦git diff  What is currently in the index? ◦git diff --cached  What was the last commit? ◦git show  What are all the commits before the current? ◦git log  Graphical view of history ◦gitk