Version control system (VCS)

Similar documents
Version Control Systems (VCS)

Computer Science Design I Version Control with Git

Lab 01 How to Survive & Introduction to Git. Web Programming DataLab, CS, NTHU

Git. Presenter: Haotao (Eric) Lai Contact:

A BASIC UNDERSTANDING OF VERSION CONTROL

Git better. Collaborative project management using Git and GitHub. Matteo Sostero March 13, Sant Anna School of Advanced Studies

GETTING STARTED WITH. Michael Lessard Senior Solutions Architect June 2017

Lab Exercise Git: A distributed version control system

Version Control with Git

AIS Grid School 2015

New Chaste Infrastructure

Working in Teams CS 520 Theory and Practice of Software Engineering Fall 2018

CSE 391 Lecture 9. Version control with Git

Git for Version Control

Project Management. Overview

Revision Control. An Introduction Using Git 1/15

Windows. Everywhere else

Git & Github Fundamental by Rajesh Kumar.

Version Control. Software Carpentry Github s Hello World Git For Ages 4 And Up You need source code control now

Getting the files for the first time...2. Making Changes, Commiting them and Pull Requests:...5. Update your repository from the upstream master...

GETTING TO KNOW GIT: PART II JUSTIN ELLIOTT PENN STATE UNIVERSITY

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

CSCI 2132: Software Development. Norbert Zeh. Faculty of Computer Science Dalhousie University. Subversion (and Git) Winter 2019

Version Control. Version Control

Revision Control and GIT

Version control with Git.

Version Control with Git ME 461 Fall 2018

Tutorial: Getting Started with Git. Introduction to version control Benefits of using Git Basic commands Workflow

Hg Tutorial. For : COP Object oriented Programming (Using C++) Biswas Parajuli

Version Control Systems

2/8/18. Overview. Project Management. The First Law. What is Project Management? What Are These Changes? Software Configuration Management (SCM)

Programming with Haiku

Topics covered. Introduction to Git Git workflows Git key concepts Hands on session Branching models. Git 2

CS 320 Introduction to Software Engineering Spring February 06, 2017

Version Control with Git

L Modeling and Simulating Social Systems with MATLAB


The Old World. Have you ever had to collaborate on a project by

Git Introduction CS 400. February 11, 2018

Revision control. INF5750/ Lecture 2 (Part I)

Introduction to Version Control

Git: Distributed Version Control

Introduction to Git. Database Systems DataLab, CS, NTHU Spring, 2018

FEEG Applied Programming 3 - Version Control and Git II

GIT FOR SYSTEM ADMINS JUSTIN ELLIOTT PENN STATE UNIVERSITY

CSCE UVM Hands-on Session-1 Pre-Work

S18 Modern Version Control with Git

Tips on how to set up a GitHub account:

Revision control Advanced git

Welcome! Virtual tutorial starts at 15:00 GMT. Please leave feedback afterwards at:

git commit --amend git rebase <base> git reflog git checkout -b Create and check out a new branch named <branch>. Drop the -b

GUIDE TO MAKE A REAL CONTRIBUTION TO AN OPEN SOURCE PROJECT 1. 1

A quick (and maybe practical) guide to Git and version control. By Jay Johnson

Version Control. Version Control

What is git? Distributed Version Control System (VCS); Created by Linus Torvalds, to help with Linux development;

Make sure to mark it private. Make sure to make it a Mercurial one and not a Git one.

Version Control: Gitting Started

Git: Distributed Version Control

Gitlab Setup/Usage by Yifeng Zhu modified by Vince Weaver 30 January 2019

Git Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : October, More documents are freely available at PythonDSP

Software Development I

F17 Modern Version Control with Git. Aaron Perley

Git AN INTRODUCTION. Introduction to Git as a version control system: concepts, main features and practical aspects.

Software Revision Control for MASS. Git Basics, Best Practices

(Cloud9) and to the Remote Repository (GitHub)

Fundamentals of Git 1

Intro Technical details Using vcsh Outlook Outro. vcsh. manage config files in $HOME via fake bare git repositories

INET

Software Revision Control for MASS. Git Installation / Configuration / Use

Git and GitHub. Dan Wysocki. February 12, Dan Wysocki Git and GitHub February 12, / 48

Online Remote Repositories

Version Control System GIT

Object Oriented Programming. Week 1 Part 2 Git and egit

Version Control Systems. Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University

EECS 470 Lab 4. Version Control System. Friday, 31 st January, 2014

Version control. what is version control? setting up Git simple command-line usage Git basics

USING GIT FOR AUTOMATION AND COLLABORATION JUSTIN ELLIOTT - MATT HANSEN PENN STATE UNIVERSITY

! #Running this command from the top directory of your project will add all your changes."! $ git add."

git Version: 2.0b Merge combines trees, and checks out the result Pull does a fetch, then a merge If you only can remember one command:

Git AN INTRODUCTION. Introduction to Git as a version control system: concepts, main features and practical aspects.

Introduction to Git and Github Repositories

:59:32 PM PST

Overview. 1. Install git and create a Github account 2. What is git? 3. How does git work? 4. What is GitHub? 5. Quick example using git and GitHub

Distributed Version Control

Lecture 2: Data in Linguistics, Git/GitHub, Jupyter Notebook. LING 1340/2340: Data Science for Linguists Na-Rae Han

CS314 Software Engineering Configuration Management

Code Repository. P Blanchfield

School of Computing Science Gitlab Platform - User Notes

Beyond git add/commit/push

Git Basi, workflow e concetti avanzati (pt2)

Git! Fundamentals. IT Pro Roundtable! June 17, 2014!! Justin Elliott! ITS / TLT! Classroom and Lab Computing!! Michael Potter!

Version Control with Git and What is there in Project 1 PALLABI GHOSH COMPUTER NETWORKS RECITATION 1

History of the development of Lua

Version control CSE 403

What is Git? What is Git? Version Control. Barry Grant

Version Control Systems (Part 1)

Version Control Systems: Overview

2 Initialize a git repository on your machine, add a README file, commit and push

Source Code Management wih git

License. Introduction to Version Control with Git. Local Version Control Systems. Why Use Version Control?

Transcription:

Version control system (VCS) Remember that you are required to keep a process-log-book of the whole development solutions with just one commit or with incomplete process-log-book (where it is not possible to follow the progress of the project) will not be accepted it does not matter that mistakes are done while developing. What matters is that we can track how you solved the problems A VCS is ideal to maintain a process-log-book

Version control system (VCS) Currently there many VCSs available: svn, git, mercurial, cvs,... for the class project (for easying the supervision) you are required to use git and the services provided by bitbucket you are also required to use only private repositories In this guide we will use git as well we will also use bitbucket which offers free (multiuser) private git repositories there are many other free repositories services such as Google code, Sourceforge, etc.

Git: basic documentation If you are new to git we recommend you to have a look to the following introductory material: a very basic guide http://rogerdudler.github.io/git-guide/ a more elaborated tutorial for beginners: https://www.atlassian.com/git/tutorials a good graphical tutorial: http://marklodato.github.io/visual-git-guide/index-en.html

Git: creating the central repository Create a new repository in bitbucket for that you should: sign up: https://bitbucket.org/ log in in your account and create new private repository called fraction_tutorial see next slide

Git: creating the central repository

Git tips (1) Try to save in the git repositories only text files:.cpp,.hpp, scons scripts, doxygen configuration files, makefiles, do not save binary files, object files (*.o), executables and libraries Before starting configure git in your account (set user name, email, text editor, ). For this follow the steps presented in: https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-config

Git: creating working directory Now that you have created the central repository it is time to create your working directory. go to the directory work/fraction_tutorial which is available on your account. On the linux console type: cd work/fraction_tutorial This directory has a template of the code (c++ code, scons scripts, makefiles and doxygen template) Note the directory structure: /doc doxygen documentation /src source files /src/unittest code with unit tests /test code to run the tests

Git: creating the working directory Use the indications provided by bitbucket in order to connect the local working directory with the central repository Next slide gives more details

Git: creating working directory On the console type (remember you should be in the fraction_tutorial directory): git init This creates a new local repository (so from now we have the central and local repositories). If you type on the console ls al you should be able see the new hidden.git folder

Git: creating working directory It is time to connect the local repository with the central one, for that type: git remote add origin https://username@bitbucket.org/username/fraction_tutorial.git adjust username accordingly Since the current code in the local repository does not exist in the central one (type git status to check this) we need to save it This can be done by following three steps in git: add, commit and push fraction_ tutorial dir. local repo. git add stage (index) git commit history git push remote repo. bitbucket

Git: saving into the central repo. Add files and folders to the stage using git add If you type again git status you will notice that the files we added are marked as new and that they are ready to be committed Note that the new files are in the stage but not in the history

Git: saving into the central repo. In order to commit into the history type: git commit m meaningful message so that we can track and assess what you did

Git: saving into the central repo. Now the files are in the history and need to be pushed into the central repository Type: git push origin master origin refers to the central repository and master to the current branch when asked type the password of your bitbucket account

Git: saving into the central repo. You may check that the changes done are now saved in the central repository:

Git: saving into the central repo. Type again git status to check that now everything is up-todate So far you are done with git stuff! Now lets have a look to what you just pushed

Here some extra tips: Git tips (2) If you want to give access to a team member you can send an invitation in bitbucket Your team colleague can then use git clone (see tutorials) in order to work on the files To learn about git flows read this documentation: https://www.atlassian.com/git/tutorials/comparing-workflows