L – Modeling and Simulating Social Systems with MATLAB

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.
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.
1 CSE 390 “Lecture 11” Version control with Git slides created by Ruth Anderson, images from
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 with Github August 26th, 2014 Daniel Schreij VU Cognitive Psychology departement
علیرضا فراهانی استاد درس: جعفری نژاد مهر 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.
Git (Get) it done right! Practical Applied Version Control for Drupal site developers Peter Chen - Stanford School of Engineering Technical Webmaster.
…using Git/Tortoise 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.
Git Fundamentals Rochelle Terman 13 January 2014.
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.
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.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
CS 160 and CMPE/SE 131 Software Engineering February 16 Class Meeting Department of Computer Science Department of Computer Engineering San José State.
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 -
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
Backing up a machine with git
M.Sc. Juan Carlos Olivares Rojas
L – Modeling and Simulating Social Systems with MATLAB
CReSIS Git Tutorial.
Version Control.
CS/COE 1520 Recitation Week 2
Setting up Git, GitBash, and GitHub
L – Modeling and Simulating Social Systems with MATLAB
Setting up Git, GitBash, and GitHub
SSE2034: System Software Experiment 3 Spring 2016
L – Modeling and Simulating Social Systems with MATLAB
L – Modeling and Simulating Social Systems with MATLAB
Version Control overview
L – Modeling and Simulating Social Systems with MATLAB
L – Modeling and Simulating Social Systems with MATLAB
L – Modeling and Simulating Social Systems with MATLAB
Macaualy2 Workshop Berkeley 2017
Storing, Sending, and Tracking Files Recitation 2
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
The Big Picture
SIG: Open Week 1: GitHub Tim Choh.
Setting up Git, GitBash, and GitHub
An introduction to version control systems with Git
Getting Started with Git and Bitbucket
Computer Systems Programming
Part 1: Editing and Publishing Files
Using Github.
Git CS Fall 2018.
Version Control System - Git
Version control with Git
Introduction to Git and GitHub
Git started with git: 2018 edition
CMPE/SE 131 Software Engineering February 14 Class Meeting
Version Control with Git and GitHub
Version/revision control via git
Introduction to Git and Github
Introduction to The Git Version Control System
Presentation transcript:

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

Let’s Git Started…part 2 05.05.2018 Let’s Git Started…part 2 In this mini tutorial we will quickly repeat what we told you about using GIT on your local machine GIT is a great tool when combined with an online repository… and this is the topic of today!

Let’s Git Started: what we have learned… 05.05.2018 Let’s Git Started: what we have learned… GIT is free, open source software. http://git-scm.com/ GIT Bash (Windows) git (Linux – command line only) Command Line commands: Change directory: cd List files in a directory: ls Create a new directory: mkdir <name_of_dir>

Let’s Git Started: what we have learned… 05.05.2018 Let’s Git Started: what we have learned… Introduce yourself to GIT. $ git config --global user.name "Your Name" $ git config --global user.email i@me.com

Let’s Git Started: what we have learned… 05.05.2018 Let’s Git Started: what we have learned… Git keeps track of the changes of the files what we add to the index Git saves snapshots of the index $ git add file1 file2 $ git add . $ git commit –m “I made this changes”

Using GIT: going on line! 05.05.2018 Using GIT: going on line! If you are not registered yet, please do so (every student should have an account, it’s free!) http://github.com An initial configuration is required. 1. Copy your SSH public key to your github account 2. Create a repository online 3. Clone the project template 4. Push your first commit online 6 6

Using GIT: Step 1. SSH Keys 05.05.2018 Using GIT: Step 1. SSH Keys What is an SSH public key ? It is a certificate of your identity (actually of your laptop). Why do I need one ? If you copy it and paste into your Github account, you don’t have to reinsert username and password every time you connect with GIT. 7 7

Using GIT: Step 1. SSH Keys 05.05.2018 Using GIT: Step 1. SSH Keys To complete step 1 please follow one of the following tutorials: http://help.github.com/linux- set-up-git/ http://help.github.com/win-set-up-git/ http://help.github.com/mac-set-up-git/ (it is basically the same process for all OS, only with a few changes) 8 8

Using GIT: Step 2. Create your own repo 05.05.2018 Using GIT: Step 2. Create your own repo Step 2 is done only by one group member, i.e. one repository for each group only! Create your first repository by clicking on 'New Repository' on your github page. Problems?http://help.github.com/create-a-repo/ Please use a significant name for the repo! E.g. if you study Opinion Formation, a good one could be cool_opinions_12 9 9

Using GIT: successfully created repo 05.05.2018 Using GIT: successfully created repo 10 10

Using GIT: successfully created repo 05.05.2018 Using GIT: successfully created repo Don’t do it! We will use the project template instead 11 11

Using GIT: Step 3. Clone project template 05.05.2018 Using GIT: Step 3. Clone project template Open GIT Bash. Type in one line: $ git clone git@github.com:msssm/project_template.git myproject 12

Using GIT: going on line! Step 2. 05.05.2018 Using GIT: going on line! Step 2. Open GIT Bash. Type in one line: $ git clone git@github.com:msssm/project_template.git myproject 13 13

Using GIT: going on line! Step 2. 05.05.2018 Using GIT: going on line! Step 2. Open GIT Bash. Type in one line: $ git clone git@github.com:msssm/project_template.git myproject Your local project directory 14 14

Using GIT: going on line! Step 4. 05.05.2018 Using GIT: going on line! Step 4. Step 4. is on your local machine. Basically: you are telling your local git to remove the link with the project template repo and to add a new link to your online repository (called remote). 15 15

Using GIT: going on line! Step 4. 05.05.2018 Using GIT: going on line! Step 4. $ git remote -v >> origin git@github.com:msssm/project_template.git (fetch) origin git@github.com:msssm/project_template.git (push) $ git remote rm origin $ git remote add origin git@github.com:msssm/newrepo.git Show current remotes Remove old ones Add your own 16 16

Write your Research Plan and push it! 05.05.2018 Write your Research Plan and push it! Write your research plan inside the README file. When you are happy : $ git add README.md $ git commit –m “Research Plan done” $ git push –u origin master 17 17

Using GIT: final steps Be social: 05.05.2018 Using GIT: final steps Be social: The person who created the repository has an admin panel on the repo page. Click Admin, then select Collaborators. Add the other group members (who should be so kind to tell you their user names…) Very important!! Start following user msssm. 18 18

References Git Home Page: http://git-scm.com/ 05.05.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/ GIT: creating a repo http://help.github.com/create-a-repo/ GIT: working with remotes http://help.github.com/remotes/ Format for README file: https://github.com/github/markup#readme