Command Line Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See

Slides:



Advertisements
Similar presentations
TortoiseSVN By Group 1 Team B. Installing TortoiseSVN.
Advertisements

Intro to Version Control Have you ever …? Had an application crash and lose ALL of your work Made changes to a file for the worse and wished you could.
Using Subversion for Source Code Control Michael McLennan Software Architect Network for Computational Nanotechnology.
Version Control System (Sub)Version Control (SVN).
Me: Dr James Hetherington -- UCL Research Software Development Team -- blogs.ucl.ac.uk/research-software-development/blogs.ucl.ac.uk/research-software-development/
Version Control System Sui Huang, McMaster University Version Control SystemSui Huang, McMaster University Version Control System -- base on Subversion.
David Notkin Autumn 2009 CSE303 Lecture 22 Subversion is an open source version control system. Social Implications Friday version control system.
2/6/2008Prof. Hilfinger CS164 Lecture 71 Version Control Lecture 7.
Using subversion COMP 2400 Prof. Chris GauthierDickey.
Version Control using Subversion Albert Young-Sun Kim November 2 nd, 2005 Available at entations/ subversion/
CS311 – Lecture 08 Outline Subversion (SVN) *All information taken from “SVN Book” O’Reilly Lecture 081CS Operating Systems I.
SubVersioN – the new Central Service at DESY by Marian Gawron.
Version Control Systems and the Subversion Kloimstein Dominik.
Version Control. What is Version Control? Manages file sharing for Concurrent Development Keeps track of changes with Version Control SubVersion (SVN)
1 Topics for this Lecture Software maintenance in general Source control systems (intro to svn)
Subversion. What is Subversion? A Version Control System A successor to CVS and SourceSafe Essentially gives you a tracked, shared file system.
NEEDS Berkeley Workshop 2014 NEEDS Compact Model Development Process Michael McLennan Director, HUBzero® Platform for Scientific Collaboration Purdue University.
Nacht van Saturnus.
Version Control with Subversion Quick Reference of Subversion.
Git – versioning and managing your software L. Grewe.
Subversion (SVN) Tutorial for CS421 Dan Fleck Spring 2010.
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.
Chris Onions Getting started with CVS in ATLAS 11 Getting started with CVS in ATLAS Chris Onions (Tutorial based on that of Raúl Ramos Pollán CERN / IT.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
Subversion (SVN) A Revision Control System Successor to CVS Carlos Armas Hervey Allen.
Progress with migration to SVN Part3: How to work with g4svn and geant4tags tools. Geant4.
SENG 403 Tutorial 1 1SENG 403 – Winter Agenda Version Control Basics Subversion Basic actions in Subversion Some examples 2SENG 403 – Winter 2012.
CSE 219 Computer Science III CVS
Created by Charlie Sebastian  - The average temperature is -234 Fahrenheit.  - One day on Jupiter is 9.92 hours long.  - One year on Jupiter is 4,329.
Subversion is a free/open-source version control system. It manages files and directories, and the changes made to them, over time. This allows you to.
Version Control with SVN Images from TortoiseSVN documentation
Git Super Basics. What is Git? Version Control System (VCS) Successor to SVN in the Drupal eco-system A tool.
Mass: 1,898,130,000,000,000,000 billion kg ( x Earth) Equatorial Diameter: 142,984 km Polar Diameter: 133,709 km Equatorial Circumference: 439,264.
CVS: Concurrent Version System Lecturer: Prof. Andrzej (AJ) Bieszczad Phone: “UNIX for Programmers and Users” Third.
Rollback Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See
12 CVS Mauro Jaskelioff (originally by Gail Hopkins)
Version Control System
Version Control and SVN ECE 297. Why Do We Need Version Control?
Introduction to Git Yonglei Tao GVSU. Version Control Systems  Also known as Source Code Management systems  Increase your productivity by allowing.
1 CSE 303 Lecture 19 Version control and Subversion ( svn ) slides created by Marty Stepp
Subversion (SVN) Tutorial for CS421 Dan Fleck Spring 2010.
Solar System Montage.
Git How to 1. Why Git To resolve problems in lab exams (accidental deletions) Use existing Libraries with ease (Statistics and Computer) Prepare undergraduates.
CS520 Web Programming Version Control with Subversion Chengyu Sun California State University, Los Angeles.
Using Subversion for Source Code Control Michael McLennan HUBzero® Platform for Scientific Collaboration Purdue University This work licensed under Creative.
Software Testing and Maintenance 1 Subversion  Fundamental Concepts  Basic Usage.
DIGITAL REPOSITORIES CGDD Job Description… Senior Tools Programmer – pulled August 4 th, 2011 from Gamasutra.
1 Subversion Kate Hedstrom April Version Control Software System for managing source files –For groups of people working on the same code –When.
Problem Solving With C++ SVN ( Version Control ) April 2016.
Source Control Dr. Scott Schaefer. Version Control Systems Allow for maintenance and archiving of multiple versions of code / other files Designed for.
Configuration Management
CVS : Add new file Team -6 October 28, 2004.
SVN intro (review).
Source Control Dr. Scott Schaefer.
Subversion Reasons to use How it works Subversion important commands
CSE 303 Concepts and Tools for Software Development
CVS Conflict Resolution Example
Subversion.
Distributed Version Control with git
slides borrowed and adapted from Alex Mariakis and CSE 390a
Compilers, Make and SubVersion
Subclipse CSCI 3130 Summer 2016.
CVS Concurrent Versioning System
Subversion Basics Guide
Version Control Basic Operation Copyright © Software Carpentry 2010
By Jove! Fold 2 pieces of paper into a book. OPEN SOLAR SYSTEM SCOPE FOR ALL YOUR INFO. Full screen works best. Cover: Title and picture (be creative for.
CVS By: Mark Henkel.
Prof. Hilfinger CS164 Lecture 4
Version Control Conflict Copyright © Software Carpentry 2010
Presentation transcript:

Command Line Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See for more information. Version Control

Command Line SmartSVN

Version ControlCommand Line SmartSVN Command Line

Version ControlCommand Line It’s fast.

Version ControlCommand Line It’s fast. It’s simple.

Version ControlCommand Line revision 6

Version ControlCommand Line $ svn checkout

Version ControlCommand Line $ svn co

Version ControlCommand Line $ svn co /cygwin/home/dracula/monsters

Version ControlCommand Line $ svn co /cygwin/home/dracula/monsters repository

Version ControlCommand Line $ svn co /cygwin/home/dracula/monsters working copy

Version ControlCommand Line $ svn co /cygwin/home/dracula/monsters Aearth/carlsbad.txt Aearth/antarctica.txt... Checked out revision 6. $ 6 6

Version ControlCommand Line $ svn co /cygwin/home/dracula/monsters Aearth/carlsbad.txt Aearth/antarctica.txt... Checked out revision 6. $ cd /cygwin/home/dracula/monsters $ 6

Version ControlCommand Line $ svn co /cygwin/home/dracula/monsters Aearth/carlsbad.txt Aearth/antarctica.txt... Checked out revision 6. $ cd /cygwin/home/dracula/monsters $ ls earth mars jupiter … $ 6

Version ControlCommand Line $ svn log

Version ControlCommand Line $ svn log Damn the budget – the Jovian moons would be … r6 | mummy | :21:39 | 1 lines The budget might not even stretch to a deep… r5 | mummy | :19:18 | 1 lines … $ 6

Version ControlCommand Line $ svn log Damn the budget – the Jovian moons would be … r6 | mummy | :21:39 | 1 lines The budget might not even stretch to a deep… r5 | mummy | :19:18 | 1 lines … $ 6

Version ControlCommand Line $ svn log Damn the budget – the Jovian moons would be … r6 | mummy | :21:39 | 1 lines The budget might not even stretch to a deep… r5 | mummy | :19:18 | 1 lines … $ 6

Version ControlCommand Line $ svn log Damn the budget – the Jovian moons would be … r6 | mummy | :21:39 | 1 lines The budget might not even stretch to a deep… r5 | mummy | :19:18 | 1 lines … $ 6

Version ControlCommand Line $ cd jupiter $ 6

Version ControlCommand Line $ cd jupiter $ nano moons.txt GNU Nano NameOrbital RadiusOrbital PeriodMass Io Europa Ganymede Calisto … $ 6+

Version ControlCommand Line $ cd jupiter $ nano moons.txt GNU Nano NameOrbital RadiusOrbital PeriodMass Io Europa Ganymede Calisto … $ see SWC lecture on “The Shell” for details about file creation 6+

Version ControlCommand Line $ cd jupiter $ nano moons.txt GNU Nano NameOrbital RadiusOrbital PeriodMass Io Europa Ganymede Calisto … $ 6+

Version ControlCommand Line $ cd jupiter $ nano moons.txt GNU Nano NameOrbital RadiusOrbital PeriodMass Io Europa Ganymede Calisto … $ svn add 6+

Version ControlCommand Line $ cd jupiter $ nano moons.txt GNU Nano NameOrbital RadiusOrbital PeriodMass Io Europa Ganymede Calisto … $ svn add moons.txt 6+

Version ControlCommand Line $ cd jupiter $ nano moons.txt GNU Nano NameOrbital RadiusOrbital PeriodMass Io Europa Ganymede Calisto … $ svn add moons.txt Amoons.txt $ 6+

Version ControlCommand Line revision 6 revision 6+

Version ControlCommand Line $ svn commit –m “Some basic facts about the Galilean moons of Jupiter.” 6+

Version ControlCommand Line $ svn commit –m “Some basic facts about the Galilean moons of Jupiter.” 6+

Version ControlCommand Line $ svn commit –m “Some basic facts about the Galilean moons of Jupiter.” 6+

Version ControlCommand Line $ svn commit –m “Some basic facts about the Galilean moons of Jupiter.” Addingmoons.txt Transmitting file data.. Committed revision 7. $ 7 7

Version ControlCommand Line revision 7 revision 6

Version ControlCommand Line $ cd /cygwin/home/wolfman/monsters 6

Version ControlCommand Line $ cd /cygwin/home/wolfman/monsters $ svn update 6

Version ControlCommand Line $ cd /cygwin/home/wolfman/monsters $ svn update Ajupiter/moons.txt Updated to revision 7. $ 7 7

Version ControlCommand Line $ cd /cygwin/home/wolfman/monsters $ svn update Ajupiter/moons.txt Updated to revision 7. $ cd jupiter $ less moons.txt NameOrbital RadiusOrbital PeriodMass Amalthea Io Europa Ganymede Calisto

Version ControlCommand Line $ cd /cygwin/home/wolfman/monsters $ svn update Ajupiter/moons.txt Updated to revision 7. $ cd jupiter $ less moons.txt NameOrbital RadiusOrbital PeriodMass Amalthea Io Europa Ganymede Calisto

Version ControlCommand Line $ nano moons.txt GNU Nano NameOrbital RadiusOrbital PeriodMass Io Europa Ganymede Callisto

Version ControlCommand Line $ nano moons.txt GNU Nano NameOrbital RadiusOrbital PeriodMass Amalthea Io Europa Ganymede Callisto

Version ControlCommand Line $ nano moons.txt GNU Nano NameOrbital RadiusOrbital PeriodMass Amalthea Io Europa Ganymede Callisto … $ svn commit –m “1. Fixed typo Calisto->Callisto. 2. Added info about Amalthea.” Sending jupiter/moons.txt Transmitting file data. Committed revision

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters 7

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters $ svn diff 7

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters $ svn diff –r HEAD 7

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters $ svn diff –r HEAD 7

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters $ svn diff –r HEAD Index: jupiter/moons.txt ================================================================= --- jupiter/moons.txt (revision 8) +++ jupiter/moons.txt (working copy) -1,6 +1,5 NameOrbital RadiusOrbital PeriodMass -Amalthea Io Europa Ganymede Callisto Calisto $ 7

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters $ svn diff –r HEAD Index: jupiter/moons.txt ================================================================= --- jupiter/moons.txt (revision 8) +++ jupiter/moons.txt (working copy) -1,6 +1,5 NameOrbital RadiusOrbital PeriodMass -Amalthea Io Europa Ganymede Callisto Calisto $ 7

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters $ svn diff –r HEAD Index: jupiter/moons.txt ================================================================= --- jupiter/moons.txt (revision 8) +++ jupiter/moons.txt (working copy) -1,6 +1,5 NameOrbital RadiusOrbital PeriodMass -Amalthea Io Europa Ganymede Callisto Calisto $ 7

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters $ svn diff –r HEAD Index: jupiter/moons.txt ================================================================= --- jupiter/moons.txt (revision 8) +++ jupiter/moons.txt (working copy) -1,6 +1,5 NameOrbital RadiusOrbital PeriodMass -Amalthea Io Europa Ganymede Callisto Calisto $ svn update G jupiter/moons.txt Updated to revision

Version ControlCommand Line revision 8

Version ControlCommand Line Dealing with Conflicts

Version ControlCommand Line revision 8 revision 8+

Version ControlCommand Line revision 9 revision 8+

Version ControlCommand Line $ svn commit -m “Added data for Himalia, Elara" Sending jupiter/moons.txt svn: Commit failed (details follow): svn: File or directory 'moons.txt' is out of date; try updating svn: resource out of date; try updating $ 8+ 9

Version ControlCommand Line $ svn commit -m “Added data for Himalia, Elara" Sending jupiter/moons.txt svn: Commit failed (details follow): svn: File or directory 'moons.txt' is out of date; try updating svn: resource out of date; try updating $ 8+ 9

Version ControlCommand Line $ svn commit -m “Added data for Himalia, Elara" Sending jupiter/moons.txt svn: Commit failed (details follow): svn: File or directory 'moons.txt' is out of date; try updating svn: resource out of date; try updating $ svn update G jupiter/moons.txt Updated to revision 9. $ 9+ 9

Version ControlCommand Line $ svn commit -m “Added data for Himalia, Elara" Sending jupiter/moons.txt svn: Commit failed (details follow): svn: File or directory 'moons.txt' is out of date; try updating svn: resource out of date; try updating $ svn update G jupiter/moons.txt Updated to revision 9. $ svn commit -m “Added data for Himalia, Elara" Sending jupiter/moons.txt Transmitting file data. Committed revision 10. $ 10

Version ControlCommand Line revision 10 revision 9+ revision 10+

Version ControlCommand Line revision 11 revision 9+ revision 11

Version ControlCommand Line $ svn commit -m “Added measurement units" Sending jupiter/moons.txt svn: Commit failed (details follow): svn: File or directory 'moons.txt' is out of date; try updating svn: resource out of date; try updating $ 9+ 11

Version ControlCommand Line $ svn commit -m “Added measurement units" Sending jupiter/moons.txt svn: Commit failed (details follow): svn: File or directory 'moons.txt' is out of date; try updating svn: resource out of date; try updating $ svn update 9+ 11

Version ControlCommand Line $ svn commit -m “Added measurement units" Sending jupiter/moons.txt svn: Commit failed (details follow): svn: File or directory 'moons.txt' is out of date; try updating svn: resource out of date; try updating $ svn update Conflict discovered in ‘jupiter/moons.txt'. Select: (p) postpone, (df) diff-full, (e) edit, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: 9+ 11

Version ControlCommand Line $ svn commit -m “Added measurement units" Sending jupiter/moons.txt svn: Commit failed (details follow): svn: File or directory 'moons.txt' is out of date; try updating svn: resource out of date; try updating $ svn update Conflict discovered in ‘jupiter/moons.txt'. Select: (p) postpone, (df) diff-full, (e) edit, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: df 9+ 11

Version ControlCommand Line --- jupiter/.svn/text-base/moons.txt.svn-base Fri Oct 1 21: jupiter/.svn/tmp/moons.txt.tmp Fri Oct 1 22:59 -1,6 +1,11 Name Orbital Radius Orbital Period Mass +<<<<<<<.mine + * 10^3 km * days * 10^20 kg +======= + (10**3 km) (days) (10**20 kg) +>>>>>>>.r11 Amalthea Io Europa Ganymede Callisto Select: (p) postpone, (df) diff-full, (e) edit, (r) resolved, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options:

Version ControlCommand Line --- jupiter/.svn/text-base/moons.txt.svn-base Fri Oct 1 21: jupiter/.svn/tmp/moons.txt.tmp Fri Oct 1 22:59 -1,6 +1,11 Name Orbital Radius Orbital Period Mass +<<<<<<<.mine + * 10^3 km * days * 10^20 kg +======= + (10**3 km) (days) (10**20 kg) +>>>>>>>.r11 Amalthea Io Europa Ganymede Callisto Select: (p) postpone, (df) diff-full, (e) edit, (r) resolved, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options:

Version ControlCommand Line --- jupiter/.svn/text-base/moons.txt.svn-base Fri Oct 1 21: jupiter/.svn/tmp/moons.txt.tmp Fri Oct 1 22:59 -1,6 +1,11 Name Orbital Radius Orbital Period Mass +<<<<<<<.mine + * 10^3 km * days * 10^20 kg +======= + (10**3 km) (days) (10**20 kg) +>>>>>>>.r11 Amalthea Io Europa Ganymede Callisto Select: (p) postpone, (df) diff-full, (e) edit, (r) resolved, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options:

Version ControlCommand Line --- jupiter/.svn/text-base/moons.txt.svn-base Fri Oct 1 21: jupiter/.svn/tmp/moons.txt.tmp Fri Oct 1 22:59 -1,6 +1,11 Name Orbital Radius Orbital Period Mass +<<<<<<<.mine + * 10^3 km * days * 10^20 kg +======= + (10**3 km) (days) (10**20 kg) +>>>>>>>.r11 Amalthea Io Europa Ganymede Callisto Select: (p) postpone, (df) diff-full, (e) edit, (r) resolved, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: e

Version ControlCommand Line GNU Nano Name Orbital Radius Orbital Period Mass <<<<<<<.mine + * 10^3 km * days * 10^20 kg +======= + (10**3 km) (days) (10**20 kg) +>>>>>>>.r11 Amalthea Io Europa Ganymede Callisto …

Version ControlCommand Line GNU Nano Name Orbital Radius Orbital Period Mass <<<<<<<.mine + * 10^3 km * days * 10^20 kg +======= + (10**3 km) (days) (10**20 kg) +>>>>>>>.r11 Amalthea Io Europa Ganymede Callisto …

Version ControlCommand Line GNU Nano Name Orbital Radius Orbital Period Mass <<<<<<<.mine + * 10^3 km * days * 10^20 kg +======= + (10**3 km) (days) (10**20 kg) +>>>>>>>.r11 Amalthea Io Europa Ganymede Callisto …

Version ControlCommand Line GNU Nano Name Orbital Radius Orbital Period Mass * 10^3 km * days * 10^20 kg Amalthea Io Europa Ganymede Callisto …

Version ControlCommand Line Select: (p) postpone, (df) diff-full, (e) edit, (r) resolved, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: 9+ 11

Version ControlCommand Line Select: (p) postpone, (df) diff-full, (e) edit, (r) resolved, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: r 9+ 11

Version ControlCommand Line Select: (p) postpone, (df) diff-full, (e) edit, (r) resolved, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: r Updated to revision 11. $

Version ControlCommand Line Select: (p) postpone, (df) diff-full, (e) edit, (r) resolved, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: r Updated to revision 11. $ svn commit -m “Added measurement units“ Sending jupiter/moons.txt Transmitting file data. Committed revision

Version ControlCommand Line Rollback

Version ControlCommand Line revision 12

Version ControlCommand Line revision 12 revision 12+

Version ControlCommand Line revision 12 revision 12+ UNDO!

Version ControlCommand Line $ cd /cygwin/home/wolfman/monsters/jupiter $ 12+

Version ControlCommand Line $ cd /cygwin/home/wolfman/monsters/jupiter $ svn revert 12+

Version ControlCommand Line $ cd /cygwin/home/wolfman/monsters/jupiter $ svn revert moons.txt 12+

Version ControlCommand Line $ cd /cygwin/home/wolfman/monsters/jupiter $ svn revert moons.txt Reverted moons.txt $ 12

Version ControlCommand Line revision 12

Version ControlCommand Line revision 12 revision 12+

Version ControlCommand Line revision 13

Version ControlCommand Line revision 13 I want to reverse!

Version ControlCommand Line NO ERASING!

Version ControlCommand Line merge

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters/jupiter $ svn merge 13

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters/jupiter $ svn merge -r 13

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters/jupiter $ svn merge –r HEAD:12 13

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters/jupiter $ svn merge –r HEAD:12 moons.txt 13

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters/jupiter $ svn merge –r HEAD:12 moons.txt -- Reverse-merging r13 into ‘moons.txt’ Umoons.txt $ 13+

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters/jupiter $ svn merge –r HEAD:12 moons.txt -- Reverse-merging r13 into ‘moons.txt’ Umoons.txt $ svn diff... $ 13+

Version ControlCommand Line $ cd /cygwin/home/dracula/monsters/jupiter $ svn merge –r HEAD:12 moons.txt -- Reverse-merging r13 into ‘moons.txt’ Umoons.txt $ svn diff... $ svn commit –m “Alright, no commas.” Sending jupiter/moons.txt Transmitting file data. Committed revision

Version ControlCommand Line svn co check out repository svn log view change history svn add add file svn commit commit file svn update update to most recent revision svn diff view differences between revisions svn merge merge revisions

October 2010 created by Ainsley Lawson Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See for more information.