L – Modeling and Simulating Social Systems with MATLAB

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
Version Control Systems Phil Pratt-Szeliga Fall 2010.
SubVersioN – the new Central Service at DESY by Marian Gawron.
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
Git Intro Information mostly from Pro Git. Prepare  Start Eclipse, we have a 5-minute exercise later.
BIT 285: ( Web) Application Programming Lecture 07 : Tuesday, January 27, 2015 Git.
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.
Subversion. What is Subversion? A Version Control System A successor to CVS and SourceSafe Essentially gives you a tracked, shared file system.
Source Code Management with CVS Kurt Wiersma December 2004.
علیرضا فراهانی استاد درس: جعفری نژاد مهر Version Control ▪Version control is a system that records changes to a file or set of files over time so.
Git – versioning and managing your software L. Grewe.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 8-Oct-15.
Warmup A programmer’s wife tells him, “Would you mind going to the store and picking up a loaf of bread? Also, if they have eggs, get a dozen.” The programmer.
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.
…using Git/Tortoise Git
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.
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.
GIT.
Intro to Git presented by Brian K. Vagnini Hosted by.
Version Control System
Introduction to Git Yonglei Tao GVSU. Version Control Systems  Also known as Source Code Management systems  Increase your productivity by allowing.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
Subversion (SVN) Tutorial for CS421 Dan Fleck Spring 2010.
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.
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
Version Control Systems
M.Sc. Juan Carlos Olivares Rojas
Source Control Systems
L – Modeling and Simulating Social Systems with MATLAB
L – Modeling and Simulating Social Systems with MATLAB
Version Control Systems
Discussion 11 Final Project / Git.
L – Modeling and Simulating Social Systems with MATLAB
L – Modeling and Simulating Social Systems with MATLAB
Version Control overview
Version control, using Git
L – Modeling and Simulating Social Systems with MATLAB
Version Control System using Git
L – Modeling and Simulating Social Systems with MATLAB
L – Modeling and Simulating Social Systems with MATLAB
L – Modeling and Simulating Social Systems with MATLAB
Version Control Systems
Concurrent Version Control
Lab 1 introduction, debrief
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
An introduction to version control systems with Git
Git CS Fall 2018.
Version Control System - Git
Version control with Git
Introduction to Git and GitHub
Git started with git: 2018 edition
Version Control with Git and GitHub
Version/revision control via git
Git GitHub.
Presentation transcript:

851-0585-04L – Modeling and Simulating Social Systems with MATLAB 03.06.2018 851-0585-04L – Modeling and Simulating Social Systems with MATLAB Lecture 3 – Introducing GIT Karsten Donnay and Stefano Balietti Chair of Sociology, in particular of Modeling and Simulation © ETH Zürich | © ETH Zürich |

Revision Control: What? 03.06.2018 Revision Control: What? Revision (or version) control systems are software aimed at managing changes to documents (text files). Famous version control software: TRADITIONAL: CVS, SVN; MODERN: Bazaar, Mercurial, GIT. Throughtout the whole course GIT will be: your preciuous ally in developing your project code. the default tool for the final submission of all the project files.

03.06.2018 Revision Control: Why? Because human brain was not initially created for programming...

03.06.2018 Revision Control: Why? Team Work Betty Karl Kornelius

How to efficiently integrate our code ??? 03.06.2018 Revision Control: Why? Team Work How to efficiently integrate our code ??? Betty Karl Kornelius

How to efficiently integrate our code ??? 03.06.2018 Revision Control: Why? Team Work How to efficiently integrate our code ??? GIT provides automatic tools to visualize diff., merging code, and track the history of the project!! Betty Karl Kornelius

Revision Control: Why? Time Machine 1 3 4 6 Deadline for submission 03.06.2018 Revision Control: Why? Time Machine Deadline for submission Weeks 1 3 4 6 coding starts… Initial agent loop. Super-cool plot added. Simulation on network

Revision Control: Why? Time Machine 1 3 4 6 What to do now? breaks 03.06.2018 Revision Control: Why? Time Machine Deadline for submission Weeks 1 3 4 6 coding starts… Initial agent loop. Super-cool plot added. Simulation on network What to do now? breaks

Revision Control: Why? Time Machine 1 3 4 6 What to do now? breaks 03.06.2018 Revision Control: Why? Time Machine Deadline for submission Weeks 1 3 4 6 coding starts… Initial agent loop. Super-cool plot added. Simulation on network What to do now? breaks GIT can save periodic snapshots of your code (commits) All past commits are stored and can be easily reintegrated.

Revision Control: Why? Time Machine 1 3 4 6 What to do now? breaks 03.06.2018 Revision Control: Why? Time Machine Recover changes Deadline for submission Weeks 1 3 4 6 Super-cool plot is back coding starts… Initial agent loop. Super-cool plot added. Super-cool plot added. Simulation on network What to do now? breaks GIT can save periodic snapshots of your code (commits) All past commits are stored and can be easily reintegrated.

03.06.2018 Let’s Git Started GIT is free, open source software. http://git-scm.com/ Works from GUI and from terminal (command-line) On the Lab machines you can launch it with: GIT Bash (Windows) git (Linux – command line only)

03.06.2018 Let’s Git Started GIT is free, open source software. http://git-scm.com/ Works from GUI and from terminal (command-line) On the Lab machines you can launch it with: GIT Bash (Windows) git (Linux – command line only) Change directory: cd List files in a directory: ls Create a new directory: mkdir Terminal commands to remember

Let’s Git Started Open a terminal or GIT Bash. 03.06.2018 Let’s Git Started Open a terminal or GIT Bash. Set the language to English (if you like) Browse to the directory with the exercise files. Initialize your first GIT repository export LANG=en_us cd /path/to/your/files/ git init

Let’s Git Started Introduce yourself to GIT 03.06.2018 Let’s Git Started Introduce yourself to GIT Tell GIT which files you would like to track for changes. git config --global user.name "Your Name" git config --global user.email you@example.com git add file1 file2 git add .

Let’s Git Started Do your first commit 03.06.2018 Let’s Git Started Do your first commit Do any modification to the content of the files. Get the update of the status of the repository git commit –m “This is my first commit” git status

Let’s Git Started Visualize the differences in the terminal. 03.06.2018 Let’s Git Started Visualize the differences in the terminal. Visualize the differences in a GUI client Tell GIT to accept the changes and commit. git diff gitk ; git gui ; gitx (for MAC) git add . ; git commit –m “Some changes”

Some hints how to use GIT for your code 03.06.2018 Some hints how to use GIT for your code Commit often. Use appropriate commit messages. Do not rename the file names manually (use git mv) New files are not automatically indexed, must be added. Careful with git add . Rather choose the files: git add file1 Write a .gitignore file or use git ignore for files that you never want to commit (e.g. big datasets)

References Git Home Page: http://git-scm.com/ 03.06.2018 References Git Home Page: http://git-scm.com/ Git General Info: http://git-scm.com/about Github Home Page: https://github.com/ GitX (a gui for OS X): http://gitx.frim.nl/ Git in 5 minutes: http://www.fiveminutes.eu/a-case-for-git/ Git Book http://book.git-scm.com/