Git Basics. Christian Hanser. Institute for Applied Information Processing and Communications Graz University of Technology. 6.
|
|
- Jane Lewis
- 8 years ago
- Views:
Transcription
1 Git Basics Christian Hanser Institute for Applied Information Processing and Communications Graz University of Technology 6. March 2013 Christian Hanser 6. March 2013 Seite 1/39
2 Outline Learning Targets Version Control Systems Git Basics Philosophy of Git Working with Git Conclusions Christian Hanser 6. March 2013 Seite 2/39
3 Learning Targets Being able to describe Git s principles, and being able to use Git in a basic way Christian Hanser 6. March 2013 Seite 3/39
4 Version Control Systems Goals keeping track of file revisions, and easing joint work of several parties on the same project For instance CVS, Mercurial, SVN, Git,... Christian Hanser 6. March 2013 Seite 4/39
5 Version Control Systems (cont.) Terminology a commit holds changes to a set of files in the working directory at some point in time a repository is an ordered tree-like structure of commits. It holds the current and the historical data of all files ever version-controlled in the working directory a branch is a branch of the repository tree, representing a development strand (e.g. for the development of a new feature) Christian Hanser 6. March 2013 Seite 5/39
6 Example of a Repository Tree C experimental init... master B develop Branches: master, develop, experimental Christian Hanser 6. March 2013 Seite 6/39
7 Version Control Systems (cont.) Terminology (cont.) working directory is the user s current view on the files in the repository a merge denotes the application of two different sets of changes to a set of files, e.g., by combining two branches head is a pointer to the commit the user is currently working on a tag is a label on a commit Christian Hanser 6. March 2013 Seite 7/39
8 Example of a Repository Tree (cont.) C experimental init... master, HEAD B develop Current branch: master Christian Hanser 6. March 2013 Seite 8/39
9 Outline Learning Targets Version Control Systems Git Basics Philosophy of Git Working with Git Conclusions Christian Hanser 6. March 2013 Seite 9/39
10 Philosophy of Git Git is a high-level mini-filesystem, with remote synchronization capabilities, and some other nice specialties which is well-suited for version-control. Christian Hanser 6. March 2013 Seite 10/39
11 Philosophy of Git (cont.) Advantages of Git s approach: flexibility, little overhead (esp. no network overhead), no restrictions if server is down, and repository manipulations can be done very quickly (as performed locally) Christian Hanser 6. March 2013 Seite 11/39
12 Philosophy of Git (cont.) everything (files/commits/trees) is a data object every data object is identified with its SHA-1 hash integrity, all changes are detectable Christian Hanser 6. March 2013 Seite 12/39
13 Outline Learning Targets Version Control Systems Git Basics Philosophy of Git Working with Git Conclusions Christian Hanser 6. March 2013 Seite 13/39
14 Example of a Git Repository Tree /test_git (master)$ git gr 1 * a5bcc47 (HEAD, master) Merge branch develop \ * df6b942 (develop) function headers * d basic functionality / * 4da52aa added main() * 58863bd added header file * e244fda init df6b942 (develop) e244fda 58863bd 4da52aa d a5bcc47 (master) We can see that every node is identified by a hash value! 1 cf. Appendix for git gr Christian Hanser 6. March 2013 Seite 14/39
15 Git s Three States Areas, where files reside: working directory: holds current source (with latest, untracked changes) staging area: reservoir of changes for next commit (allows selecting changes for next commit) repository: holds the commits; safe area List changes in working directory and staging area with /test_git (experimental)$ git status Christian Hanser 6. March 2013 Seite 15/39
16 Git s Three States (cont.) Figure: Git s Three States (Source: [1]) Christian Hanser 6. March 2013 Seite 16/39
17 Committing Changes Now, suppose we are working in the branch experimental: init... master B experimental and want to commit some untracked changes (and files): /test_git (experimental)$ git status # On branch experimental # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: src/main.h # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # src/main.c Christian Hanser 6. March 2013 Seite 17/39
18 Committing Changes (cont.) To do so, we collect the changes for the next commit, by adding them to the staging area: /test_git (experimental)$ git add *.c *.h yielding the following status: /test_git (experimental)$ git status # On branch experimental # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: src/main.h # new file: src/main.c Christian Hanser 6. March 2013 Seite 18/39
19 Committing Changes (cont.) Now we can commit the collected changes followingly: /test_git (experimental)$ git commit -m "bugfix" changing the repository tree from init... master A experimental (B) to init... master A B experimental Christian Hanser 6. March 2013 Seite 19/39
20 Unstaging Changes Now, suppose we are given the following status: /test_git (experimental)$ git status # On branch experimental # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: src/main.h # new file: src/main.c but only wanted (for whatever reason) to commit the first file. Christian Hanser 6. March 2013 Seite 20/39
21 Unstaging Changes (cont.) To do so we can unstage the second file: /test_git (experimental)$ git reset src/main.c /test_git (experimental)$ git status # On branch experimental # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: src/main.h # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # src/main.c So far, no changes are lost! Christian Hanser 6. March 2013 Seite 21/39
22 Reverting Changes Now, suppose that we would like to undo the changes in main.h. First, we unstage it: /test_git (experimental)$ git reset src/main.h /test_git (experimental)$ git status # On branch experimental # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: src/main.h # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # src/main.c So far, no changes are lost! Christian Hanser 6. March 2013 Seite 22/39
23 Reverting Changes (cont.) We undo the changes in main.h by checking it out from the repository: /test_git (experimental)$ git checkout src/main.h giving the following status: /test_git (experimental)$ git status # On branch experimental # Untracked files: # (use "git add <file>..." to include in what will be committed) # # src/main.c Christian Hanser 6. March 2013 Seite 23/39
24 Branching A new branch (atop of master) can be created by: /test_git (master)$ git branch develop... master, develop The new branch can then be checked out via: /test_git (master)$ git checkout develop Christian Hanser 6. March 2013 Seite 24/39
25 Branching (cont.) Git also allows us to check out a specific commit, e.g., the commit with hash f75f00d: /test_git (master)$ git checkout f75f00d... f75f00d... master and creating a new branch out of it: /test_git (master)$ git branch new branch... new branch (f75f00d)... master Christian Hanser 6. March 2013 Seite 25/39
26 Merging Branches It is best practice to create short-living local branches for new features. For instance, one could create a branch experimental for the implementation of an experimental feature: # creates a new branch and checks it out /test_git (develop)$ git branch experimental... master develop, experimental (A) commit changes to it:... master develop (A) experimental Christian Hanser 6. March 2013 Seite 26/39
27 Merging Branches (cont.) and at a latter point of time, merge experimental back into develop: # merges branches /test_git (develop)$ git merge experimental If there are no new overlapping changes, Git can auto-merge. Otherwise, we may get a conflict: /test_git (develop)$ git status # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # unmerged: src/main.c which must be resolved using an editor. Christian Hanser 6. March 2013 Seite 27/39
28 Merging Branches (cont.) Merge conflicts look the same as in SVN: <<<<<<< HEAD: src/main.c char* buffer = malloc(136 * sizeof(char)); ======= char* buffer = malloc(140 * sizeof(char)); >>>>>>> experimental: src/main.c The latter is what we need, so we delete the marked lines. At last, we add and commit to finalize the merge. Christian Hanser 6. March 2013 Seite 28/39
29 Deleting Branches After completing the experimental feature and merging it back into develop, we can delete the experimental branch by: /test_git (develop)$ git branch -d experimental Christian Hanser 6. March 2013 Seite 29/39
30 Tagging Commits Tagging allows us to label commits, which is useful to mark releases, for instance. Usage We can tag a commit using: /test_git (master)$ git tag v5.0 commit-hash As with branches, tags can be checked out: /test_git (master)$ git checkout v5.0 Christian Hanser 6. March 2013 Seite 30/39
31 Rebasing Operation on the commit tree that redefines root nodes of subtrees. Alternative to merge, but not always applicable. Attention On rebasing all subtree commit hashes change, making the repository incompatible to local repositories of others. During a rebase merge conflicts can occur. Christian Hanser 6. March 2013 Seite 31/39
32 Rebasing (cont.) Suppose we have merged experimental into the local branch develop, while a team-member has pushed changes to origin/develop. origin/develop master... A (common base) develop Rebase makes it easy to combine remote with local changes: /test_git (develop)$ git pull --rebase This way, our changes will be placed atop of remote changes: master... A origin/develop develop Christian Hanser 6. March 2013 Seite 32/39
33 Rebasing (cont.) Suppose we are working on branch experimental. In between, we ve appended some bugfixes to develop. C experimental master... A (common base) B develop In order to make these changes available to the experimental branch, we can rebase it onto develop: /test_git (develop)$ git rebase develop experimental master... A B develop C experimental Christian Hanser 6. March 2013 Seite 33/39
34 Rebasing (cont.) We are given the following scenario: master A B develop (C) D experimental (E) Instead of merging experimental into develop, we can also rebase develop onto experimental: /test_git (develop)$ git rebase experimental develop master A B C D experimental, develop (E) Advantage: the whole history is being preserved. Christian Hanser 6. March 2013 Seite 34/39
35 Merging vs. Rebasing When working locally, merges can (mostly) be replaced by more sophisticated rebases. Nevertheless, in (most) situations involving remote branches, merging must be used! Note: non-fast-forward merges also preserve the history, use: git merge --no-ff Christian Hanser 6. March 2013 Seite 35/39
36 Interaction with Remote Repositories Only three ways of remote interaction: Cloning a remote repository: git clone user@github.com:repo.git Fetching changes from a remote repository: git fetch (leaves the local HEAD untouched) git pull (fetch and merge remote changes into the local repository) Submitting changes to a remote repository: git push Christian Hanser 6. March 2013 Seite 36/39
37 Conclusions We have seen Git s differences to conventional VCSs, that Git is a very flexible and reliable, how to synchronize with remote repositories, the benefits of branching, and basic operations, such as commit, merging and rebasing. Christian Hanser 6. March 2013 Seite 37/39
38 Literature Scott Chacon Pro Git. apress, Christian Hanser 6. March 2013 Seite 38/39
39 Outline Appendix Additional Material Christian Hanser 6. March 2013 Seite 1/8
40 Pushing Branches In case we want to share branches with others or simply want to create a backup we can push it to the server: /test_git (develop)$ git push origin branch If it is deployed, we can also remove it from the remote repository: /test_git (develop)$ git push origin :experimental Christian Hanser 6. March 2013 Seite 2/8
41 Amendments to Previous Commits Now, suppose that we forgot to add some changes to main.c, we can amend them by /test_git (experimental)$ git add main.c /test_git (experimental)$ git commit --amend Amendments change the hash of the previous commit. Unless we have already pushed it, we can still amend them. Christian Hanser 6. March 2013 Seite 3/8
42 Stashing Changes Git allows stashing uncommitted changes, i.e. it commits changes to an implicit, internal branch. This is useful to save changes temporarily. Suppose, we want to stash changes in branch develop and apply them to experimental: # stash uncommitted changes /test_git (develop)$ git stash # switch the branch /test_git (develop)$ git checkout experimental # apply the changes to experimental /test_git (experimental)$ git stash apply Christian Hanser 6. March 2013 Seite 4/8
43 More Commands Create a new (local) Git repository in a folder: git init List Git-controlled files: git ls Pick a certain commit: git cherry-pick Show diffs: git diff commit1-hash commit2-hash Show detailed log: git log Show changes: git whatchanged Interactive rebasing/history rewriting: git rebase -i commit-hashˆ Use binary search to find bugs: git bisect Christian Hanser 6. March 2013 Seite 5/8
44 SVN vs. Git or How not to use Git A typical, sloppy SVN-style workflow would be for instance: # merge latest changes from remote repository /src/$ git pull # edit some files... # again, merge latest changes from remote repository /src/$ git pull # add all changes to the next commit /src/$ git add -A # commit the above changes /src/$ git commit -m "backup to not lose the latest changes: code optimizations, comments, bugfixes, and other unsorted/unrelated crap" # submit the changes to the remove repository /src/$ git push In contrast to SVN and the like, Git induces us to organize our commits. Christian Hanser 6. March 2013 Seite 6/8
45 .gitignore Similar to SVN, we can add.gitignore files, in order to hide files in status messages: /test_git (master)$ cat.gitignore.gitignore.classpath.project.settings/ bin/ *.txt Christian Hanser 6. March 2013 Seite 7/8
46 .gitconfig Put this in your /.gitconfig 2 file to enable useful aliases: [user] name = Your Name = yourname@student.tugraz.at [alias] st = status ci = commit co = checkout br = branch gr = "!git --no-pager log -n 20 --graph --full-history\ --all --color --pretty=tformat:\ %x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an %ar)%x1b[0m " [color] ui = auto Use git gr to print logs: * a85eac7 (HEAD, experimental) initial commit (Christian Hanser) * 7297cd1 (develop) fixed possible bug in lib.c (Christian Hanser) * 03e4d45 added lib.c (Christian Hanser) / * 06a7bcf hello world now working (Christian Hanser)... 2 Windows: C:\Document and Settings\yourusername\.gitconfig Christian Hanser 6. March 2013 Seite 8/8
Introduction to Git. Markus Kötter koetter@rrzn.uni-hannover.de. Notes. Leinelab Workshop July 28, 2015
Introduction to Git Markus Kötter koetter@rrzn.uni-hannover.de Leinelab Workshop July 28, 2015 Motivation - Why use version control? Versions in file names: does this look familiar? $ ls file file.2 file.
More informationVersion control with GIT
AGV, IIT Kharagpur September 13, 2012 Outline 1 Version control system What is version control Why version control 2 Introducing GIT What is GIT? 3 Using GIT Using GIT for AGV at IIT KGP Help and Tips
More informationVersion Control with Git. Dylan Nugent
Version Control with Git Dylan Nugent Agenda What is Version Control? (and why use it?) What is Git? (And why Git?) How Git Works (in theory) Setting up Git (surviving the CLI) The basics of Git (Just
More informationVersion Control with Git. Kate Hedstrom ARSC, UAF
1 Version Control with Git Kate Hedstrom ARSC, UAF Linus Torvalds 3 Version Control Software System for managing source files For groups of people working on the same code When you need to get back last
More informationIntroduction to Version Control
Research Institute for Symbolic Computation Johannes Kepler University Linz, Austria Winter semester 2014 Outline General Remarks about Version Control 1 General Remarks about Version Control 2 Outline
More informationIntroduction to the Git Version Control System
Introduction to the Sebastian Rockel rockel@informatik.uni-hamburg.de University of Hamburg Faculty of Mathematics, Informatics and Natural Sciences Department of Informatics Technical Aspects of Multimodal
More informationGit. A Distributed Version Control System. Carlos García Campos carlosgc@gsyc.es
Git A Distributed Version Control System Carlos García Campos carlosgc@gsyc.es Carlos García Campos carlosgc@gsyc.es - Git 1 A couple of Quotes For the first 10 years of kernel maintenance, we literally
More informationVersion Control! Scenarios, Working with Git!
Version Control! Scenarios, Working with Git!! Scenario 1! You finished the assignment at home! VC 2 Scenario 1b! You finished the assignment at home! You get to York to submit and realize you did not
More informationVersion Control with Svn, Git and git-svn. Kate Hedstrom ARSC, UAF
1 Version Control with Svn, Git and git-svn Kate Hedstrom ARSC, UAF 2 Version Control Software System for managing source files For groups of people working on the same code When you need to get back last
More informationUsing Git for Project Management with µvision
MDK Version 5 Tutorial AN279, Spring 2015, V 1.0 Abstract Teamwork is the basis of many modern microcontroller development projects. Often teams are distributed all over the world and over various time
More informationGit Basics. Christopher Simpkins chris.simpkins@gatech.edu. Chris Simpkins (Georgia Tech) CS 2340 Objects and Design CS 1331 1 / 22
Git Basics Christopher Simpkins chris.simpkins@gatech.edu Chris Simpkins (Georgia Tech) CS 2340 Objects and Design CS 1331 1 / 22 Version Control Systems Records changes to files over time Allows you to
More informationAnnoyances with our current source control Can it get more comfortable? Git Appendix. Git vs Subversion. Andrey Kotlarski 13.XII.
Git vs Subversion Andrey Kotlarski 13.XII.2011 Outline Annoyances with our current source control Can it get more comfortable? Git Appendix Rant Network traffic Hopefully we have good repository backup
More informationVersion Control with. Ben Morgan
Version Control with Ben Morgan Developer Workflow Log what we did: Add foo support Edit Sources Add Files Compile and Test Logbook ======= 1. Initial version Logbook ======= 1. Initial version 2. Remove
More informationVersion Control Systems (Part 2)
i i Systems and Internet Infrastructure Security Institute for Networking and Security Research Department of Computer Science and Engineering Pennsylvania State University, University Park, PA Version
More informationVersion Control Systems: SVN and GIT. How do VCS support SW development teams?
Version Control Systems: SVN and GIT How do VCS support SW development teams? CS 435/535 The College of William and Mary Agile manifesto We are uncovering better ways of developing software by doing it
More informationMOOSE-Based Application Development on GitLab
MOOSE-Based Application Development on GitLab MOOSE Team Idaho National Laboratory September 9, 2014 Introduction The intended audience for this talk is developers of INL-hosted, MOOSE-based applications.
More informationIntroduction to Version Control with Git
Introduction to Version Control with Git Dark Cosmology Centre Niels Bohr Institute License All images adapted from Pro Git by Scott Chacon and released under license Creative Commons BY-NC-SA 3.0. See
More informationRevision control systems (RCS) and
Revision control systems (RCS) and Subversion Problem area Software projects with multiple developers need to coordinate and synchronize the source code Approaches to version control Work on same computer
More informationVersion Control for Computational Economists: An Introduction
Version Control for Computational Economists: An Introduction Jake C. Torcasso April 3, 2014 Starting Point A collection of files on your computer Changes to files and new files over time Interested in
More informationVersion Control with Git. Linux Users Group UT Arlington. Rohit Rawat rohitrawat@gmail.com
Version Control with Git Linux Users Group UT Arlington Rohit Rawat rohitrawat@gmail.com Need for Version Control Better than manually storing backups of older versions Easier to keep everyone updated
More informationTwo Best Practices for Scientific Computing
Two Best Practices for Scientific Computing Version Control Systems & Automated Code Testing David Love Software Interest Group University of Arizona February 18, 2013 How This Talk Happened Applied alumnus,
More informationGitflow process. Adapt Learning: Gitflow process. Document control
Adapt Learning: Gitflow process Document control Abstract: Presents Totara Social s design goals to ensure subsequent design and development meets the needs of end- users. Author: Fabien O Carroll, Sven
More informationVersion Control using Git and Github. Joseph Rivera
Version Control using Git and Github Joseph Rivera 1 What is Version Control? Powerful development tool! Management of additions, deletions, and modifications to software/source code or more generally
More informationLab Exercise Part II: Git: A distributed version control system
Lunds tekniska högskola Datavetenskap, Nov 25, 2013 EDA260 Programvaruutveckling i grupp projekt Labb 2 (part II: Git): Labbhandledning Checked on Git versions: 1.8.1.2 Lab Exercise Part II: Git: A distributed
More informationMATLAB & Git Versioning: The Very Basics
1 MATLAB & Git Versioning: The Very Basics basic guide for using git (command line) in the development of MATLAB code (windows) The information for this small guide was taken from the following websites:
More informationIntroducing Xcode Source Control
APPENDIX A Introducing Xcode Source Control What You ll Learn in This Appendix: u The source control features offered in Xcode u The language of source control systems u How to connect to remote Subversion
More informationCSCB07 Software Design Version Control
CSCB07 Software Design Version Control Anya Tafliovich Fall 2015 Problem I: Working Solo How do you keep track of changes to your program? Option 1: Don t bother Hope you get it right the first time Hope
More informationVersion control. with git and GitHub. Karl Broman. Biostatistics & Medical Informatics, UW Madison
Version control with git and GitHub Karl Broman Biostatistics & Medical Informatics, UW Madison kbroman.org github.com/kbroman @kwbroman Course web: kbroman.org/tools4rr Slides prepared with Sam Younkin
More informationCISC 275: Introduction to Software Engineering. Lab 5: Introduction to Revision Control with. Charlie Greenbacker University of Delaware Fall 2011
CISC 275: Introduction to Software Engineering Lab 5: Introduction to Revision Control with Charlie Greenbacker University of Delaware Fall 2011 Overview Revision Control Systems in general Subversion
More informationVersion Control Systems
Version Control Systems ESA 2015/2016 Adam Belloum a.s.z.belloum@uva.nl Material Prepared by Eelco Schatborn Today IntroducGon to Version Control Systems Centralized Version Control Systems RCS CVS SVN
More informationVersion Uncontrolled! : How to Manage Your Version Control
Version Uncontrolled! : How to Manage Your Version Control Harold Dost III, Raastech ABSTRACT Are you constantly wondering what is in your production environment? Do you have any doubts about what code
More informationCPSC 491. Today: Source code control. Source Code (Version) Control. Exercise: g., no git, subversion, cvs, etc.)
Today: Source code control CPSC 491 Source Code (Version) Control Exercise: 1. Pretend like you don t have a version control system (e. g., no git, subversion, cvs, etc.) 2. How would you manage your source
More informationMercurial. Why version control (Single users)
Mercurial Author: Hans Fangohr Date: 2008-05-21 Version: 033c85b22987 Id: talk.txt,v 033c85b22987 2008/05/21 08:42:42 fangohr Series: SESA2006 2008, last lecture Hint Adjust font-size
More informationSource Control Systems
Source Control Systems SVN, Git, GitHub SoftUni Team Technical Trainers Software University http://softuni.bg Table of Contents 1. Software Configuration Management (SCM) 2. Version Control Systems: Philosophy
More informationVersion control. HEAD is the name of the latest revision in the repository. It can be used in subversion rather than the latest revision number.
Version control Version control is a powerful tool for many kinds of work done over a period of time, including writing papers and theses as well as writing code. This session gives a introduction to a
More informationFEEG6002 - Applied Programming 3 - Version Control and Git II
FEEG6002 - Applied Programming 3 - Version Control and Git II Sam Sinayoko 2015-10-16 1 / 26 Outline Learning outcomes Working with a single repository (review) Working with multiple versions of a repository
More informationAbout the Tutorial. Audience. Prerequisites. Copyright & Disclaimer GIT
i About the Tutorial Git is a distributed revision control and source code management system with an emphasis on speed. Git was initially designed and developed by Linus Torvalds for Linux kernel development.
More informationCSE 374 Programming Concepts & Tools. Laura Campbell (Thanks to Hal Perkins) Winter 2014 Lecture 16 Version control and svn
CSE 374 Programming Concepts & Tools Laura Campbell (Thanks to Hal Perkins) Winter 2014 Lecture 16 Version control and svn Where we are Learning tools and concepts relevant to multi-file, multi-person,
More information1. History 2. Structure 3. Git Comparison 4. File Storage 5. File Tracking 6. Staging 7. Queues (MQ) 8. Merge Tools 9. Interfaces
1 Hg 1. History 2. Structure 3. Git Comparison 4. File Storage 5. File Tracking 6. Staging 7. Queues (MQ) 8. Merge Tools 9. Interfaces 2 Mercurial / Git History Bitmover's BitKeeper Proprietary distributed
More informationVersion control systems. Lecture 2
Version control systems Lecture 2 VCS Many people s version- control method of choice is to copy files into another directory (e.g. a @me- stamped directory). But this approach is error prone. Easy to
More informationIn depth study - Dev teams tooling
In depth study - Dev teams tooling Max Åberg mat09mab@ Jacob Burenstam Linder ada09jbu@ Desired feedback Structure of paper Problem description Inconsistencies git story explanation 1 Introduction Hypotheses
More informationMATLAB @ Work. MATLAB Source Control Using Git
MATLAB @ Work MATLAB Source Control Using Git Richard Johnson Using source control is a key practice for professional programmers. If you have ever broken a program with a lot of editing changes, you can
More informationVersion Control Script
Version Control Script Mike Jackson, The Software Sustainability Institute Things you should do are written in bold. Suggested dialog is in normal text. Command- line excerpts and code fragments are in
More informationAn Introduction to Mercurial Version Control Software
An Introduction to Mercurial Version Control Software LANS Weekly Seminar October 17, 2006 Satish Balay balay@mcs.anl.gov Outline Why use version control? Simple example of revisioning Mercurial introduction
More informationCS108, Stanford Handout #33. CVS in Eclipse
CS108, Stanford Handout #33 Winter, 2006-07 Nick Parlante CVS in Eclipse Source Control Any modern software project of any size uses "source control" Store all past revisions - Can see old versions, see
More informationSoftware configuration management
Software Engineering Theory Software configuration management Lena Buffoni/ Kristian Sandahl Department of Computer and Information Science 2015-09-30 2 Maintenance Requirements System Design (Architecture,
More informationDerived from Chris Cannam's original at, https://code.soundsoftware.ac.uk/projects/easyhg/wiki/sc2012bootcamppl an.
Version Control Key Points ========================== Mike Jackson, The Software Sustainability Institute. This work is licensed under the Creative Commons Attribution License. Copyright (c) Software Carpentry
More informationPro Git. Scott Chacon * 2010-08-02
Pro Git Scott Chacon * 2010-08-02 * This is the PDF file for the Pro Git book contents. It is licensed under the Creative Commons Attribution-Non Commercial-Share Alike 3.0 license. I hope you enjoy it,
More informationVersion Control. Version Control
Version Control CS440 Introduction to Software Engineering 2013, 2015 John Bell Based on slides prepared by Jason Leigh for CS 340 University of Illinois at Chicago Version Control Incredibly important
More informationUnity Version Control
Unity Version Control with BitBucket.org and SourceTree BLACKISH - last updated: April 2013 http://blog.blackish.at http://blackish-games.com! Table of Contents Setup! 3 Join an existing repository! 4
More informationPKI, Git and SVN. Adam Young. Presented by. Senior Software Engineer, Red Hat. License Licensed under http://creativecommons.org/licenses/by/3.
PKI, Git and SVN Presented by Adam Young Senior Software Engineer, Red Hat License Licensed under http://creativecommons.org/licenses/by/3.0/ Agenda Why git Getting started Branches Commits Why? Saved
More informationAn Introduction to Mercurial Version Control Software
An Introduction to Mercurial Version Control Software CS595, IIT [Doc Updated by H. Zhang] Oct, 2010 Satish Balay balay@mcs.anl.gov Outline Why use version control? Simple example of revisioning Mercurial
More informationSoftware Configuration Management and Continuous Integration
1 Chapter 1 Software Configuration Management and Continuous Integration Matthias Molitor, 1856389 Reaching and maintaining a high quality level is essential for each today s software project. To accomplish
More informationDistributed Version Control
Distributed Version Control Faisal Tameesh April 3 rd, 2015 Executive Summary Version control is a cornerstone of modern software development. As opposed to the centralized, client-server architecture
More informationVersion Control with Git
Version Control with Git Claudius Coenen License: CC-BY-4.0 What We're Not Talking About Conceived by Linus Torvalds around 2005 Distributed Version Control vs. Central Version Control Why git is better
More informationAn Introduction to Git Version Control for SAS Programmers
ABSTRACT An Introduction to Git Version Control for SAS Programmers Stephen Philp, Pelican Programming, Redondo Beach, CA Traditionally version control has been in the domain of the enterprise: either
More informationIntroduction to Software Engineering (2+1 SWS) Winter Term 2009 / 2010 Dr. Michael Eichberg Vertretungsprofessur Software Engineering Department of
Introduction to Software Engineering (2+1 SWS) Winter Term 2009 / 2010 Dr. Michael Eichberg Vertretungsprofessur Software Engineering Department of Computer Science Technische Universität Darmstadt Dr.
More informationCS 2112 Lab: Version Control
29 September 1 October, 2014 Version Control What is Version Control? You re emailing your project back and forth with your partner. An hour before the deadline, you and your partner both find different
More informationVersion Control with Git
Version Control with Git Ben Wasserman (benjamin@cmu.edu) 15-441 Computer Networks Recitation 3 1/28 What is version control? Revisit previous code versions Backup projects Work with others Find where
More informationMiguel A. Figueroa Villanueva Xabriel J. Collazo Mojica
Version Control Systems: Subversion Xabriel J. Collazo Mojica 1 Outline Introduction Document management CMS Wiki Aigaion Code and Document Repositories Version Control Systems Centralized Distributed
More informationVersion control with Subversion
Version control with Subversion Davor Cubranic Grad Seminar October 6, 2011 With searching comes loss And the presence of absence: My Thesis not found. Version Control A tool for managing changes to a
More informationIntroduc)on to Version Control with Git. Pradeep Sivakumar, PhD Sr. Computa5onal Specialist Research Compu5ng, NUIT
Introduc)on to Version Control with Git Pradeep Sivakumar, PhD Sr. Computa5onal Specialist Research Compu5ng, NUIT Contents 1. What is Version Control? 2. Why use Version control? 3. What is Git? 4. Create
More informationVersion Control Tutorial using TortoiseSVN and. TortoiseGit
Version Control Tutorial using TortoiseSVN and TortoiseGit Christopher J. Roy, Associate Professor Virginia Tech, cjroy@vt.edu This tutorial can be found at: www.aoe.vt.edu/people/webpages/cjroy/software-resources/tortoise-svn-git-tutorial.pdf
More informationIntroduction to Version Control with Git
Introduction to Version Control with Git Dark Cosmology Centre Niels Bohr Institute License Most images adapted from Pro Git by Scott Chacon and released under license Creative Commons BY-NC-SA 3.0. See
More informationusing version control in system administration
LUKE KANIES using version control in system administration Luke Kanies runs Reductive Labs (http://reductivelabs.com), a startup producing OSS software for centralized, automated server administration.
More informationUNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences Computer Science Division. P. N. Hilfinger
UNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences Computer Science Division CS 61B Fall 2012 P. N. Hilfinger Version Control and Homework Submission 1 Introduction Your
More informationMiguel A. Figueroa Villanueva Xabriel J. Collazo Mojica. ICOM 5047 Capstone Miguel A. Figueroa Villanueva University of Puerto Rico Mayagüez Campus
Document and Information Management: A Software Developer s Perspective Xabriel J. Collazo Mojica Outline Introduction Why should I (you) care? Document management CMS Wiki Aigaion Code and Document Repositories
More informationData management on HPC platforms
Data management on HPC platforms Transferring data and handling code with Git scitas.epfl.ch September 10, 2015 http://bit.ly/1jkghz4 What kind of data Categorizing data to define a strategy Based on size?
More informationTechnical Writing - Advantages of Version Control Systems
Fachpraktikum Grafik-Programmierung WS2010 Introduction to Version Control Alexandros Panagiotidis, Daniel Kauker Institut für Visualisierung und Interaktive Systeme Universität Stuttgart Advantages of
More informationVersion Control with Subversion and Xcode
Version Control with Subversion and Xcode Author: Mark Szymczyk Last Update: June 21, 2006 This article shows you how to place your source code files under version control using Subversion and Xcode. By
More informationVersion Control with Subversion
Version Control with Subversion Introduction Wouldn t you like to have a time machine? Software developers already have one! it is called version control Version control (aka Revision Control System or
More informationContinuous Integration
Continuous Integration Collaborative development issues Checkout of a shared version of software ( mainline ) Creation of personal working copies of developers Software development: modification of personal
More informationEnvironnements et Outils de Développement Cours 7 Version Control
Environnements et Outils de Développement Cours 7 Version Control Stefano Zacchiroli zack@pps.univ-paris-diderot.fr Laboratoire PPS, Université Paris Diderot URL http://upsilon.cc/zack/teaching/1213/ed6/
More informationAVOIDING THE GIT OF DESPAIR
AVOIDING THE GIT OF DESPAIR EMMA JANE HOGBIN WESTBY SITE BUILDING TRACK @EMMAJANEHW http://drupal.org/user/1773 Avoiding The Git of Despair @emmajanehw http://drupal.org/user/1773 www.gitforteams.com Local
More informationDeveloper Workshop 2015. Marc Dumontier McMaster/OSCAR-EMR
Developer Workshop 2015 Marc Dumontier McMaster/OSCAR-EMR Agenda Code Submission 101 Infrastructure Tools Developing OSCAR Code Submission: Process OSCAR EMR Sourceforge http://www.sourceforge.net/projects/oscarmcmaster
More informationIntroduction to Subversion
Introduction to Subversion Getting started with svn Matteo Vescovi 19/02/2010 Agenda A little bit of theory Overview of Subversion Subversion approach to Version Control Using Subversion Typical subversion
More informationSource Control Guide: Git
MadCap Software Source Control Guide: Git Flare 11.1 Copyright 2015 MadCap Software. All rights reserved. Information in this document is subject to change without notice. The software described in this
More informationCVS versus BitKeeper A Comparison
Chapter 11 CVS versus BitKeeper A Comparison Since the publication of the second edition of this book, a powerful new versioning system has risen called Bitkeeper, or BK/PRO, to dominate at least certain
More informationVersion Control 3 January 2015
Version Control 3 January 2015 Ben Klemens [This is the revision control chapter of 21st Century C 1, by me, published by O Reilly Media. I had to sign over all rights to the book three times over, for
More informationGit Branching for Continuous Delivery
Git Branching for Continuous Delivery Sarah Goff-Dupont Automation Enthusiast Hello everyone I ll be talking about how teams at Atlassian use Git branches for continuous delivery. My name is Sarah, and
More informationVersion Control with Mercurial and SSH
Version Control with Mercurial and SSH Lasse Kliemann lki@informatik.uni-kiel.de Vorkurs Informatik 2010 Wishlist While working on a project, it is nice to... be able to switch back to older versions of
More informationContent. Development Tools 2(63)
Development Tools Content Project management and build, Maven Version control, Git Code coverage, JaCoCo Profiling, NetBeans Static Analyzer, NetBeans Continuous integration, Hudson Development Tools 2(63)
More informationThe Bazaar Version Control System. Michael Hudson, Canonical Ltd michael.hudson@canonical.com
The Bazaar Version Control System Michael Hudson, Canonical Ltd michael.hudson@canonical.com What is Bazaar? Bazaar is a Distributed Version Control System (DVCS) You probably know what a VCS is by now:
More informationIntroduction to Source Control ---
Introduction to Source Control --- Overview Whether your software project is large or small, it is highly recommended that you use source control as early as possible in the lifecycle of your project.
More informationWorking Copy 1.4 users manual
Working Copy 1.4 users manual Introduction 3 Cloning repositories 3 Accessing files 3 Committing changes 4 Staying up-to-date 4 Remotes 5 Clone catalog 5 SSH keys 6 Viewing and editing files 6 File changes
More informationDAVE Usage with SVN. Presentation and Tutorial v 2.0. May, 2014
DAVE Usage with SVN Presentation and Tutorial v 2.0 May, 2014 Required DAVE Version Required DAVE version: v 3.1.6 or higher (recommend to use the most latest version, as of Feb 28, 2014, v 3.1.10) Required
More informationZero-Touch Drupal Deployment
Zero-Touch Drupal Deployment Whitepaper Date 25th October 2011 Document Number MIG5-WP-D-004 Revision 01 1 Table of Contents Preamble The concept Version control Consistency breeds abstraction Automation
More informationECE 4750 Computer Architecture, Fall 2015 Tutorial 2: Git Distributed Version Control System
School of Electrical and Computer Engineering Cornell University revision: 2015-09-08-11-01 1 Introduction 2 2 Setting up Your GitHub Account 2 3 Git and GitHub 3 3.1 Single-User Workflow.....................................
More informationCSE 70: Software Development Pipeline Build Process, XML, Repositories
CSE 70: Software Development Pipeline Build Process, XML, Repositories Ingolf Krueger Department of Computer Science & Engineering University of California, San Diego La Jolla, CA 92093-0114, USA California
More informationSource Code Management/Version Control
Date: 3 rd March 2005 Source Code Management/Version Control The Problem: In a typical software development environment, many developers will be engaged in work on one code base. If everyone was to be
More informationIntegrated version control with Fossil SCM
Integrated version control with Fossil SCM Tech Talk 2009-12-01 Arne Bachmann Folie 1 Overview Web address www.fossil-scm.org Author Dr. D.R. Hipp - Author of License GPL v2 Motto No information shall
More informationXcode Source Management Guide. (Legacy)
Xcode Source Management Guide (Legacy) Contents Introduction 5 Organization of This Document 5 See Also 6 Source Management Overview 7 Source Control Essentials 7 Snapshots 8 Managing Source in Xcode 8
More informationUsing SVN to Manage Source RTL
Using SVN to Manage Source RTL CS250 Tutorial 1 (Version 092509a) September 25, 2009 Yunsup Lee In this tutorial you will gain experience using the Subversion (SVN) to manage your source RTL and code.
More informationUsing Git for Centralized and Distributed Version Control Workflows - Day 3. 1 April, 2016 Presenter: Brian Vanderwende
Using Git for Centralized and Distributed Version Control Workflows - Day 3 1 April, 2016 Presenter: Brian Vanderwende Git jargon from last time... Commit - a project snapshot in a repository Staging area
More informationDistributed Version Control with Mercurial and git
OpenStax-CNX module: m37404 1 Distributed Version Control with Mercurial and git Hannes Hirzel This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 3.0 Abstract
More informationSVN Starter s Guide Compiled by Pearl Guterman June 2005
SVN Starter s Guide Compiled by Pearl Guterman June 2005 SV Table of Contents 1) What is SVN?... 1 2) SVN Architecture... 2 3) Creating a Working Copy... 3 4) Basic Work Cycle... 4 5) Status Symbols...
More informationVersion Control and Subversion. Dr Paul Tennent
Version Control and Subversion Dr Paul Tennent Outline Housekeeping What is Version Control? Why use it? Using Subversion (SVN) Housekeeping You know where to find everything http://www.cs.nott.ax.uk/~pxt/g52grp
More informationEliminate Workflow Friction with Git
Eliminate Workflow Friction with Git Joel Clermont @jclermont I come from the distant land of Milwaukee. Organizer of Milwaukee PHP and Milwaukee FP. Feel free to reach out to me on Twitter. World s problems
More informationMaster s Thesis. git-sprite: Supporting Tool for Pull-Based Software Development Model. Yusuke Saito
NAIST-IS-MT1451049 Master s Thesis git-sprite: Supporting Tool for Pull-Based Software Development Model Yusuke Saito February 4, 2016 Department of Information Science Graduate School of Information Science
More information[Handout for L6P2] How to Avoid a Big Bang: Integrating Software Components
Integration [Handout for L6P2] How to Avoid a Big Bang: Integrating Software Components Timing and frequency: Late and one time vs early and frequent Integrating parts written by different team members
More information