Gitting things done. Hands-on introduction to git niceties. Jan Urbański Ducksboard
|
|
- Kelley Stafford
- 6 years ago
- Views:
Transcription
1 Gitting things done Hands-on introduction to git niceties Jan Urbański Ducksboard Atlassian Git Party, Madrid, September 25, 2012 Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
2 For those following at home Getting the slides Git version used $ git --version git version Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
3 1 What makes a distributed VCS 2 Common operations 3 Workflows 4 Fun with git Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
4 Outline What makes a distributed VCS 1 What makes a distributed VCS 2 Common operations 3 Workflows 4 Fun with git Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
5 What makes a distributed VCS Indepentent instances every copy of the repository is standalone no central server, no one true version democracy at its best! Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
6 What makes a distributed VCS No revision numbers each repository is independent no central authority to assign revision numbers everything is identified by hashes (commits, files, everything) each hash is built from the object s data and its parent s hash both a consistency and a security measure Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
7 What makes a distributed VCS Full control over the repository you have access to everything you can change past versions of files you can change the ownership of commits it s free for all, until you start sharing the repo Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
8 Initial setup What makes a distributed VCS Configuring Git $ git config --global user.name "Joe H. Hacker" $ git config --global user. "joehacker@example.org" $ git config --global color.diff true $ git config --global color.status true $ git config --global color.branch true $ git config --global color.ui true Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
9 Outline Common operations 1 What makes a distributed VCS 2 Common operations 3 Workflows 4 Fun with git Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
10 Checking in changes Common operations Modify files, register changes $ sed -i s/advanced/awesome/ README $ git status... # modified: README... $ git diff --word-diff $ git add README $ git commit -m "fix the README" Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
11 Common operations Working area, index, repository working area is what s on your filesystem index is what you are indenting to commit repository is what s committed sounds complicated, but is quite useful Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
12 Using the index Common operations Moving changes between the index and the working area $ git add -p $ git status $ git reset $ git status $ git checkout README $ git status Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
13 Using the stash Common operations Stashing and unstashing changes $ sed -i s/awesome/superb/ README $ git stash $ git stash list $ git stash pop $ git diff $ git stash $ git stash apply $ git stash list $ git checkout. $ git stash drop Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
14 Common operations Branches and tags a branch is a chain of commits a tag is a pointer to a single commit branches are quick and cheap to create Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
15 Using branches Common operations Creating and switching branches $ git branch $ git checkout -b my-tests $ git branch $ sed -i s/awesome/great/ README $ git add. $ git commit -m refix the README $ git checkout master $ cat README $ git checkout -b my-other-tests $ sed -i s/awesome/cool/ README $ git commit -a -m different way to fix the README Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
16 A visual example Common operations e a (...) c d e' Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
17 Common operations Forensics all history is stored locally, of course makes consulting it very quick powerful ways of consulting the history Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
18 Using git log Common operations Trolling in repo history $ git log $ git show $ git log -p $ git log --stat $ git log -- src/pl/plpython $ time git log --oneline wc -l $ git log --grep= Urba[nń]ski $ git log -p -S int64 Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
19 Viewing differences Common operations Less and more fancy ways of creating diffs $ git diff $ git diff master..my-tests $ HASH=$(git log --until master@{1 year ago}.. \ -n 1 --pretty=%h) $ echo $HASH $ git diff --stat $HASH.. $ git log master~ src/backend/replication $ git diff master~ src/backend/replication Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
20 Bisecting Common operations Tracking down a behaviour change $ cat src/backend/catalog/sql_features.txt $ cat cat ~/bisect.sh [ -f src/backend/catalog/sql_features.txt ] exit 125! grep -q ^T131.*YES src/backend/catalog/sql_features.txt $ git bisect start master 1b3d400cac1 $ git bisect run ~/bisect.sh $ git show 294e7945 $ git blame src/backend/catalog/sql_features.txt $ g show 294e7945^:src/backend/catalog/sql_features.txt $ g show 294e7945:src/backend/catalog/sql_features.txt Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
21 Outline Workflows 1 What makes a distributed VCS 2 Common operations 3 Workflows 4 Fun with git Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
22 Workflows Remote repositories a remote is a pointer to a different repository you can push your commits to a remote or you can pull commits from a remote to your local repository otherwise, it s just like a branch Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
23 Cloning a repository Workflows Ways of cloning an existing repository $ cd /tmp $ git clone pg-clone1 ~/src/pg $ git clone pg-clone2 ~/src/pg $ git clone $ # git clone username@example.org:pg.git $ cd pg-clone1 $ git remote $ git branch -r Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
24 Adding commits Workflows Pushing commits upstream $ cd /tmp/pg-clone1 $ git checkout --track origin/my-tests $ git branch $ git wtf $ sed -i s/postgresql/postgres/g README $ git add. $ git commit -m change project name $ git wtf $ git push Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
25 Workflows Fetching upstream changes Pulling changes from upstream $ cd /tmp/pg-clone2 $ git checkout --track origin/my-tests $ git wtf $ git fetch $ git wtf $ git log origin/my-tests $ git merge origin/my-tests Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
26 Workflows Merging vs rebasing if only upstream has new commits, straightforward if both upstream and you have commits, needs a decision either perform a merge or rebase your commits Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
27 Workflows Merging vs rebasing - before merging a b c d d' e e' Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
28 Workflows Merging vs rebasing - after merging a b c d d' e e' f Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
29 Workflows Merging vs rebasing - after rebasing a b c d e d' e' Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
30 Merging and conflicts Workflows Creating a conflict $ cd /tmp/pg-clone1 $ sed -i s/http/https/g README $ git add. $ git commit -m improving security $ git push $ cd /tmp/pg-clone2 $ sed -i s/information/info/g README $ git add. $ git commit -m be more concise Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
31 Merging changes Workflows Resolving a conflict when merging $ git push! [rejected] HEAD -> my-tests (non-fast-forward) $ git log origin/my-tests $ git fetch $ git log origin/my-tests $ git wtf $ git pull CONFLICT (content): Merge conflict in README $ $EDITOR README $ git add README $ git commit $ git log --graph Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
32 Merging changes cont. Workflows Resolving a conflict when rebasing $ git reset ORIG_HEAD $ git checkout README $ git rebase origin/my-tests CONFLICT (content): Merge conflict in README $ $EDITOR README $ git add README $ git rebase --continue $ git log --graph Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
33 Merging changes cont. Workflows Autoresolved conflicts $ git reset --hard origin/my-tests^ $ sed -i s/postgres/pg/g README $ git add. $ git commit -m be more concise $ git pull --rebase $ git push Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
34 Outline Fun with git 1 What makes a distributed VCS 2 Common operations 3 Workflows 4 Fun with git Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
35 Custom commands Fun with git Aliases, manual config editing $ git config --global alias.st status $ git config --global alias.ci commit $ git config --global alias.cdiff diff --cached $ git wtf $ cat ~/.gitconfig $ cat ~/src/pg/.git/config Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
36 Rewriting history Fun with git Fixing old commits before pushing $ git ci --amend $ sed -i s/supported/usefull/ README $ git add README $ git ci -m change README $ sed -i s/post/post README $ git add README $ git ci -m change case in product name $ sed -i s/usefull/useful/ README $ git add README $ git ci -m fix ortography, oh the shame! $ git rebase -i origin/master $ cat ~/bin/git-fixup Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
37 Fun with git Thanks! Questions? Let s grab a beer. Jan Urbański (Ducksboard) Gitting things done Atlassian Git Party / 37
Version Control System - Git. zswu
Version Control System - Git zswu Overview Why VCS? Why Git? Using Git Personally Using Git with Others Etiquette Rules of Using Git Tools & Services Tips 2 Why VCS (1/3) How do you manage your homework?
More informationgit 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:
Merge combines trees, and checks out the result Pull does a fetch, then a merge If you only can remember one command: git --help Get common commands and help git --help How to use git
More informationGit. A Distributed Version Control System. Carlos García Campos
Git A Distributed Version Control System Carlos García Campos carlosgc@gnome.org Carlos García Campos carlosgc@gnome.org - Git 1 A couple of Quotes For the first 10 years of kernel maintenance, we literally
More informationIntroduction to distributed version control with git
Institut für theoretische Physik TU Clausthal 04.03.2013 Inhalt 1 Basics Differences to Subversion Translation of commands 2 Config Create and clone States and workflow Remote repos Branching and merging
More informationGit for Subversion users
Git for Subversion users Zend webinar, 23-02-2012 Stefan who? Stefan who? Freelancer: Ingewikkeld Stefan who? Freelancer: Ingewikkeld Symfony Community Manager Stefan who? Freelancer: Ingewikkeld Symfony
More informationComputer Science Design I Version Control with Git
Computer Science Design I Version Control with Git Department of Electrical Engineering & Computer Science Information Technology & Telecommunications Research Center The University of Kansas annguyen@ittc.ku.edu
More informationCS 390 Software Engineering Lecture 5 More Git
CS 390 Software Engineering Lecture 5 More Git Reference: Scott Chacon and Ben Straub, Pro Git, published by Apress, available at https://git-scm.com/book/en/v2. Outline Finish local repository Remote
More informationOutline The three W s Overview of gits structure Using git Final stuff. Git. A fast distributed revision control system
Git A fast distributed revision control system Nils Moschüring PhD Student (LMU) 1 The three W s What? Why? Workflow and nomenclature 2 Overview of gits structure Structure Branches 3 Using git Setting
More informationGit. A fast distributed revision control system. Nils Moschüring PhD Student (LMU)
Git A fast distributed revision control system Nils Moschüring PhD Student (LMU) Nils Moschüring PhD Student (LMU), Git 1 1 The three W s What? Why? Workflow and nomenclature 2 Overview of gits structure
More informationGUIDE TO MAKE A REAL CONTRIBUTION TO AN OPEN SOURCE PROJECT 1. 1
GUIDE TO MAKE A REAL CONTRIBUTION TO AN OPEN SOURCE PROJECT 1. 1 WHO AM I? @tushar_rishav GSoC'16 student contributing to coala - a static code analysis tool, under Python So ware Foundation. A senior
More informationCESSDA Expert Seminar 13 & 14 September 2016 Prague, Czech Republic
CESSDA Expert Seminar 13 & 14 September 2016 Prague, Czech Republic - basics Matthäus Zloch GESIS Outline for this session Git introduction and some theory Git command basics (plus some little advanced)
More informationRevision control Advanced git
Revision control Advanced git Waterford Institute of Technology April 30, 2016 John Fitzgerald Waterford Institute of Technology, Revision controladvanced git 1/35 Presentation outline Estimated duration
More informationgit commit --amend git rebase <base> git reflog git checkout -b Create and check out a new branch named <branch>. Drop the -b
Git Cheat Sheet Git Basics Rewriting Git History git init Create empty Git repo in specified directory. Run with no arguments to initialize the current directory as a git repository. git commit
More informationIntroduction to Git. Database Systems DataLab, CS, NTHU Spring, 2018
Introduction to Git Database Systems DataLab, CS, NTHU Spring, 2018 1 Outline Version control system Git basics Git branch Remote repository 2 Outline Version control system Git basics Git branch Remote
More informationGit. all meaningful operations can be expressed in terms of the rebase command. -Linus Torvalds, 2015
Git all meaningful operations can be expressed in terms of the rebase command -Linus Torvalds, 2015 a talk by alum Ross Schlaikjer for the GNU/Linux Users Group Sound familiar? add commit diff init clone
More informationGit. Presenter: Haotao (Eric) Lai Contact:
Git Presenter: Haotao (Eric) Lai Contact: haotao.lai@gmail.com 1 Acknowledge images with white background is from the following link: http://marklodato.github.io/visual-git-guide/index-en.html images with
More informationGit. Ľubomír Prda. IT4Innovations.
Git Ľubomír Prda IT4Innovations lubomir.prda@vsb.cz support@it4i.cz VCS Version Control System Versioning - creation and management of multiple releases of a product, all of which have the same general
More informationGit Workflows. Sylvain Bouveret, Grégory Mounié, Matthieu Moy
s Sylvain Bouveret, Grégory Mounié, Matthieu Moy 2017 [first].[last]@imag.fr http://recherche.noiraudes.net/resources/git/git-workflow-slides.pdf 1 / 16 Goals of the presentation Global history: multiple
More informationFAQ Q: Where/in which branch do I create new code/modify existing code? A: Q: How do I commit new changes? A:
FAQ Q: Where/in which branch do I create new code/modify existing code? A: We strongly recommend only modifying the source code within the local master branch: Git Repository View Woped repository Branches
More informationSubmitting your Work using GIT
Submitting your Work using GIT You will be using the git distributed source control system in order to manage and submit your assignments. Why? allows you to take snapshots of your project at safe points
More informationAssumptions. GIT Commands. OS Commands
Many of the world s largest dev teams have adopted Git and it s not hard to see why It can handle small and large projects easily It has a tiny footprint It outclasses other version control tools It s
More informationIntroduction to Version Control
Research Institute for Symbolic Computation Johannes Kepler University Linz, Austria 21-Nov-2013 Outline General Remarks about Version Control 1 General Remarks about Version Control 2 Outline General
More informationVersion Control with GIT
Version Control with GIT Benjamin Roth CIS LMU München Benjamin Roth (CIS LMU München) Version Control with GIT 1 / 30 Version Control Version control [...] is the management of changes to documents, computer
More informationCommon Git Commands. Git Crash Course. Teon Banek April 7, Teon Banek (TakeLab) Common Git Commands TakeLab 1 / 18
Common Git Commands Git Crash Course Teon Banek theongugl@gmail.com April 7, 2016 Teon Banek (TakeLab) Common Git Commands TakeLab 1 / 18 Outline 1 Introduction About Git Setup 2 Basic Usage Trees Branches
More informationGit for Version Control
Git for Version Control These slides are heavily based on slides created by Ruth Anderson for CSE 390a. Thanks, Ruth! images taken from http://git-scm.com/book/en/ http://www.cs.washington.edu/403/ About
More informationGIT. CS 490MT/5555, Spring 2017, Yongjie Zheng
GIT CS 490MT/5555, Spring 2017, Yongjie Zheng GIT Overview GIT Basics Highlights: snapshot, the three states Working with the Private (Local) Repository Creating a repository and making changes to it Working
More informationVersion Control: Gitting Started
ting Started Cai Li October 2014 What is Version Control? Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. Local Version
More informationVCS VERSION CONTROL SYSTEMS
VCS VERSION CONTROL SYSTEMS http://goo.gl/1tc7oh http://waynelkh.github.io/sa-git 1 WHO AM I? NCTU-CSCC TA wnlee 2 WHAT IS "VERION CONTROL" Version control is a system that records changes to a file or
More informationBeyond git add/commit/push
add Working dir commit Staging area push Local Remote Based on original version made by Alexis López @aa_lopez About us @tuxtor @edivargas jorgevargas.mx github.com/tuxtor Review traditionals commands
More informationVersioning with git. Moritz August Git/Bash/Python-Course for MPE. Moritz August Versioning with Git
Versioning with git Moritz August 13.03.2017 Git/Bash/Python-Course for MPE 1 Agenda What s git and why is it good? The general concept of git It s a graph! What is a commit? The different levels Remote
More informationCreating a Patch. Created by Carl Heymann on 2010 Sep 14 1
Created by on 2010 Sep 14 1 1. Starting a Patch To create a patch, and get it through the review process and into a main branch of a project, you can follow the following steps: Clone the project if you
More informationGIT CHEAT SHEET. CONFIG --global => write to ~/.gitconfig, otherwise to.git/config. git config [--global] -l git config [--global] -e
A DIFF GET DISPLAY INFOS / INSPECTION / COMPARISON LIST WORK WH GUI LOG LOG HISTORIC STATUS ADD TRACK GET / CREATION CLONE INIT V1.2 esnault.jerome@gmail.com SET / UNSET git config [--global] section.item
More informationIndex. Alias syntax, 31 Author and commit attributes, 334
Index A Alias syntax, 31 Author and commit attributes, 334 B Bare repository, 19 Binary conflict creating conflicting changes, 218 during merging, 219 during rebasing, 221 Branches backup, 140 clone-with-branches
More informationSource Code Management wih git
Source Code Management wih git Matthieu Herrb December 22 http://homepages.laas.fr/matthieu/cours/git.pdf Licence This work is licensed under a Creative Commons Attribution-ShareAlike 3. Unported License.
More informationDistributed Version Control (with Git)
Distributed Version Control (with Git) Introduction and Tutorial fhlug 24. 03. 2011 Why Distributed? No single point of failure Automatic backups Fast local operations (log, diff, checkout, ) Authenticity
More informationGit. SSE2034: System Software Experiment 3, Fall 2018, Jinkyu Jeong
Git Prof. Jinkyu Jeong (Jinkyu@skku.edu) TA -- Minwoo Ahn (minwoo.ahn@csl.skku.edu) TA -- Donghyun Kim (donghyun.kim@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu
More informationIntroduction to Git and Github
Introduction to Git and Github Computing in Optimization and Statistics: Lecture 1 Jackie Baek MIT January 10, 2017 What is git and GitHub? git is a version control system. Other version control systems
More informationGit(Lab) Tutorial and Hands-On
Git(Lab) Tutorial and Hands-On Analysis Workshop 34th KATRIN Collaboration Meeting Institut für Kernphysik WWU Münster 21.02.2018 Git(Lab) Tutorial and Hands-On Or: Why branches aren t homeomorphic endofunctors
More informationIntroduction to GIT. Jordi Blasco 14 Oct 2011
Jordi Blasco (jblasco@xrqtc.com) 14 Oct 2011 Agenda 1 Project information Who is ussing GIT 2 Branch Tag Data Transport Workow 3 Congure 4 Working with remotes 5 Project information Who is ussing GIT Project
More informationAdvanced Operating Systems Control Versioning with GIT. Giuseppe Massari
Control Versioning with GIT Giuseppe Massari giuseppe.massari@polimi.it Outline 2/54 Why using version control tools? Why Git? First steps Getting help and configuration Basic concepts Local repository
More informationAdvanced Git. Luc Sarzyniec. Xilopix, February / 88
Advanced Git Luc Sarzyniec Xilopix, February 2015 1 / 88 About This slides are using resources from the Pro Git book [isbn:1430218339] which is licensed under the Creative Commons v3.0 (by-nc-sa) license.
More informationGit & Github Fundamental by Rajesh Kumar.
Git & Github Fundamental by Rajesh Kumar About me Rajesh Kumar DevOps Architect @RajeshKumarIN www.rajeshkumar.xyz www.scmgalaxy.com 2 What is git Manage your source code versions Who should use Git Anyone
More informationGit Like You Mean it. Alan Ott SCaLE 16x March 8-11, 2018
Git Like You Mean it Alan Ott SCaLE 16x March 8-11, 2018 About the Presenter Platform Software at SoftIron Data center appliances (storage, transcoding) Ceph-based storage appliances OverDrive 3000/1000
More informationMOOSE-Based Application Development on GitLab
MOOSE-Based Application Development on GitLab MOOSE Team Idaho National Laboratory February 22, 2016 Introduction The intended audience for this talk is developers of INL-hosted, MOOSE-based applications.
More informationGIT Princípy tvorby softvéru, FMFI UK Jana Kostičová,
GIT Princípy tvorby softvéru, FMFI UK Jana Kostičová, 25.4.2016 Basic features Distributed version control Developed in 2005, originally for Linux kernel development Free, GNU General Public License version
More informationGit tutorial. Katie Osterried C2SM. October 22, 2015
Git tutorial Katie Osterried C2SM October 22, 2015 Outline 1 What is Git and why are we switching? 2 Working with Git 3 Branching and Merging 4 Working with remote repositories 5 Recommendations Outline
More informationChapter 5. Version Control: Git
Chapter 5 Version Control: Git The Replication Crisis continues to heat up discussion across social science. Hence principled researchers want to make their work easy to replicate and reputable journals
More informationFundamentals of Git 1
Fundamentals of Git 1 Outline History of Git Distributed V.S Centralized Version Control Getting started Branching and Merging Working with remote Summary 2 A Brief History of Git Linus uses BitKeeper
More informationGit. Christoph Matthies Software Engineering II WS 2018/19. Enterprise Platform and Integration Concepts group
Git Software Engineering II WS 2018/19 Christoph Matthies christoph.matthies@hpi.de Enterprise Platform and Integration Concepts group Outline 1. Basics 2. Local 3. Collaboration November 16, 2018 2 Centralized
More informationVersion control with Git.
1 Version control with Git http://git-scm.com/book/en/ Basic Intro to Git We will: Discuss how Git differs from Subversion Discuss the basic Git model Pull/clone files from a repository on github Edit
More informationAPI RI. Application Programming Interface Reference Implementation. Policies and Procedures Discussion
API Working Group Meeting, Harris County, TX March 22-23, 2016 Policies and Procedures Discussion Developing a Mission Statement What do we do? How do we do it? Whom do we do it for? What value are we
More informationGit Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : October, More documents are freely available at PythonDSP
Git Guide Meher Krishna Patel Created on : Octorber, 2017 Last updated : October, 2018 More documents are freely available at PythonDSP Table of contents Table of contents i 1 Commands Summary 1 2 Git
More informationCPSC 491. Lecture 19 & 20: Source Code Version Control. VCS = Version Control Software SCM = Source Code Management
CPSC 491 Lecture 19 & 20: Source Code Version Control VCS = Version Control Software SCM = Source Code Management Exercise: Source Code (Version) Control 1. Pretend like you don t have a version control
More information1/20/13 Git tutorial. Git tutorial. Mike Nolta. file:///users/nolta/github/reveal.js/git.html?print-paper#/ 1/31
Git tutorial Mike Nolta file:///users/nolta/github/reveal.js/git.html?print-paper#/ 1/31 1. Basics file:///users/nolta/github/reveal.js/git.html?print-paper#/ 2/31 Tell git who you are $ git config --global
More informationVersion Control. Version Control
Version Control CS440 Introduction to Software Engineering John Bell Based on slides prepared by Jason Leigh for CS 340 University of Illinois at Chicago Version Control Incredibly important when working
More informationGit tips. Some tips to use Git.
Some tips to use Git. Summary I.... 1. Add remote repository on a project and how to use it... 2. Squash commits... 3. Rewrite a project history... 4. Reset a branch on a precise commit... p. 3 p. 3 p.
More informationPraktische Aspekte der Informatik
Praktische Aspekte der Informatik Moritz Mühlhausen Prof. Marcus Magnor Software Versioning Git basics, workflow, and commands Further Reading Warning! The following slides are meant to give you a very
More informationA BASIC UNDERSTANDING OF VERSION CONTROL
A BASIC UNDERSTANDING OF VERSION CONTROL DID YOU EVER DO THIS? DID YOU EVER DO THIS? DID YOU EVER DO THIS? DID YOU EVER DO THIS? DID YOU EVER DO THIS? DID YOU EVER DO THIS? DID YOU EVER DO THIS? DID YOU
More informationGit for Newbies. ComMouse Dongyue Studio
Git for Newbies ComMouse Dongyue Studio 2018.4.25 Contents What is Git? Git Quick Start Git Branch Git Workflow Git in Practice What is Git? What is Git? A Version Control System (VCS) An Open-sourced
More informationGit Tutorial. André Sailer. ILD Technical Meeting April 24, 2017 CERN-EP-LCD. ILD Technical Meeting, Apr 24, 2017 A. Sailer: Git Tutorial 1/36
ILD Technical Meeting, Apr 24, 2017 A. Sailer: Git Tutorial 1/36 Git Tutorial André Sailer CERN-EP-LCD ILD Technical Meeting April 24, 2017 LD Technical Meeting, Apr 24, 2017 A. Sailer: Git Tutorial 2/36
More informationBest Practices. Joaquim Rocha IT-DSS-TD
Best Practices joaquim.rocha@cern.ch IT-DSS-TD January 24, 2014 About yours truly Contributor to/author of many Open Source projects Member of the GNOME Foundation Former member of Igalia and Red Hat Currently
More informationGETTING TO KNOW GIT: PART II JUSTIN ELLIOTT PENN STATE UNIVERSITY
GETTING TO KNOW GIT: PART II JUSTIN ELLIOTT PENN STATE UNIVERSITY 1 REVERTING CHANGES 2 REVERTING CHANGES Change local files git reset git checkout Revert a commit in the branch history git revert Reset
More informationEECS 470 Lab 4. Version Control System. Friday, 31 st January, 2014
EECS 470 Lab 4 Version Control System Department of Electrical Engineering and Computer Science College of Engineering University of Michigan Friday, 31 st January, 2014 (University of Michigan) Lab 4:
More informationWindows. Everywhere else
Git version control Enable native scrolling Git is a tool to manage sourcecode Never lose your coding progress again An empty folder 1/30 Windows Go to your programs overview and start Git Bash Everywhere
More informationVersion Control with Git
Version Control with Git Xiaoxu Guan High Performance Computing, LSU November 11, 2015 (https://www.atlassian.com/git/tutorials) LSU HPC Training Series, Fall 2015 p. 1/52 Overview Why should we use a
More informationE, F. deleteall command, 352 directory structure, 350 export_data method, 353 inline_data method, 353 print_export method, 351 target directory, 351
Index A Access control list (ACL), 299 Ancestry references, 184 Attributes, 288 binary files, 289 export-ignore, 294 export-subst, 294 keyword expansion, 291 merge strategies, 294 Authorized_keys file,
More informationAgenda. Several projects are using GIT Developer(s) Junio Hamano, Linus Torvalds. Qt Stable release (January 31, 2011)
Basic Agenda 1 Project information Who is ussing 2 14 Oct 2011 3 Basic Data Transport Work ow 4 Con gure 5 Basic Project information Who is ussing Project information Who is ussing Project information
More information6 Git & Modularization
6 Git & Modularization Bálint Aradi Course: Scientific Programming / Wissenchaftliches Programmieren (Python) Prerequisites Additional programs needed: Spyder3, Pylint3 Git, Gitk KDiff3 (non-kde (qt-only)
More informationBeing More Productive with Git
Being More Productive with Git 20% of Git you need to know to do 80% percent of the work efficiently Eissa Nematollahi 2018-08-14 Contents 1 History of Git 2 2 Distributed vs. Centralized 2 3 Setup 3 4
More informationGit Immersion Rails Conf 2010 Tutorial
Git Immersion Rails Conf 2010 Tutorial Jim Weirich Chief Scientist / EdgeCase jim@edgecase.com @jimweirich 1 Setup git config --global user.name "Jim Weirich" git config --global user.email "jim.weirich@gmail.com"
More information2 Initialize a git repository on your machine, add a README file, commit and push
BioHPC Git Training Demo Script First, ensure that git is installed on your machine, and you have configured an ssh key. See the main slides for instructions. To follow this demo script open a terminal
More informationGit version control with Eclipse (EGit) Tutorial
Git version control with Eclipse (EGit) Tutorial 출처 : Lars Vogel http://www.vogella.com/tutorials/eclipsegit/article.html Lars Vogel Version 3.6 Copyright 2009, 2010, 2011, 2012, 2013, 2014 Lars Vogel
More informationHg Tutorial. For : COP Object oriented Programming (Using C++) Biswas Parajuli
Hg Tutorial For : COP 3330. Object oriented Programming (Using C++) http://www.compgeom.com/~piyush/teach/3330 Biswas Parajuli Need for Version Control http://hginit.com/01.html Repository Working directory:
More informationGit. Charles J. Geyer School of Statistics University of Minnesota. Stat 8054 Lecture Notes
Git Charles J. Geyer School of Statistics University of Minnesota Stat 8054 Lecture Notes 1 Before Anything Else Tell git who you are. git config --global user.name "Charles J. Geyer" git config --global
More informationVersion Control with Git
Version Control with Git Jon Loeliger O'REILLY Beijing Cambridge Farnham Köln Sebastopol Tokyo Table of Contents Preface... xi 1. Introduction... 1 Background 1 The Birth of Git 2 Precedents 4 Time Line
More informationVersion Control. Version Control
Version Control Prepared for CS 342 - Software Design by John Bell Based on slides prepared by Jason Leigh for CS 340 University of Illinois at Chicago Version Control Incredibly important when working
More informationFEEG Applied Programming 3 - Version Control and Git II
FEEG6002 - Applied Programming 3 - Version Control and Git II Richard Boardman, Sam Sinayoko 2016-10-19 Outline Learning outcomes Working with a single repository (review) Working with multiple versions
More informationReproducibility with git and rmarkdown
Reproducibility with git and rmarkdown Thomas J. Leeper Department of Government London School of Economics and Political Science 5 April 2018 1 / 65 Background Git Intermediate Git Branches & Remotes
More informationOutline. Introduction to Version Control Systems Origins of Git Git terminology & concepts Basic Git commands Branches in Git Git over the network
Outline Introduction to Version Control Systems Origins of Git Git terminology & concepts Basic Git commands Branches in Git Git over the network Why do I need version control? How many lines of code was
More informationGit Introduction CS 400. February 11, 2018
Git Introduction CS 400 February 11, 2018 1 Introduction Git is one of the most popular version control system. It is a mature, actively maintained open source project originally developed in 2005 by Linus
More informationLab 01 How to Survive & Introduction to Git. Web Programming DataLab, CS, NTHU
Lab 01 How to Survive & Introduction to Git Web Programming DataLab, CS, NTHU Notice These slides will focus on how to submit you code by using Git command line You can also use other Git GUI tool or built-in
More informationVisualizing Git Workflows. A visual guide to 539 workflows
Visualizing Git Workflows A visual guide to 539 workflows Table of Contents Notation Collaboration Without Review or Branches Merge Conflicts Requesting Code Review Collaboration with Multiple Branches
More informationGetting the Source Code
Getting the Source Code The CORD source code is available from our Gerrit system at gerrit.opencord.org. Setting up a Gerrit account and ssh access will also enable you to submit your own changes to CORD
More informationUsing Git to Manage Source RTL
Using Git to Manage Source RTL CS250 Tutorial 1 (Version 082311) August 24, 2011 Brian Zimmer How to use this tutorial This class will be using Git for all of the labs and projects. This will allow the
More informationIntroduction to GIT. The distributed SCM
Introduction to GIT The distributed SCM Bart Trojanowski
More informationGit. It is easy to shoot your foot off with git, but also easy to revert to a previous foot and merge it with your current leg.
The ECE297 Quick Start Guide Series Git It is easy to shoot your foot off with git, but also easy to revert to a previous foot and merge it with your current leg. Jack William Bell I name all my projects
More informationGit, the magical version control
Git, the magical version control Git is an open-source version control system (meaning, it s free!) that allows developers to track changes made on their code files throughout the lifetime of a project.
More informationWhat is version control? (discuss) Who has used version control? Favorite VCS? Uses of version control (read)
1 For the remainder of the class today, I want to introduce you to a topic we will spend one or two more classes discussing and that is source code control or version control. What is version control?
More informationGIT for companies Mark Struberg, INSO TU Vienna
GIT for companies Mark Struberg, INSO TU Vienna What is an SCM SCM stands for Source Code Management Checkin: organized common access to sources History: who did commit which code at what time. This creates
More informationCSE 391 Lecture 9. Version control with Git
CSE 391 Lecture 9 Version control with Git slides created by Ruth Anderson & Marty Stepp, images from http://git-scm.com/book/en/ http://www.cs.washington.edu/391/ 1 Problems Working Alone Ever done one
More informationgit the SCM system Jan-Simon Möller training.linuxfoundation.org
git the SCM system Jan-Simon Möller training.linuxfoundation.org Topics What is git (what is a SCM) How to install git How to personalize git How to use git for development What is git? What is a SCM System?
More informationOutline. Version Control System (VCS) basics Git terminology & concepts Basic Git commands Branches in Git Git over the network (time permitting)
Outline Version Control System (VCS) basics Git terminology & concepts Basic Git commands Branches in Git Git over the network (time permitting) Why do I need version control? How many lines of code was
More informationVersion Control for the 2- Pizza Team: Merge Conflicts (ELLS 9.5) Armando Fox
Version Control for the 2- Pizza Team: Merge Conflicts (ELLS 9.5) Armando Fox 2012 Armando Fox & David Patterson Licensed under Creative Commons Attribution- NonCommercial-ShareAlike 3.0 Unported License
More informationKTH Royal Institute of Technology SEMINAR 2-29 March Simone Stefani -
KTH Royal Institute of Technology SEMINAR 2-29 March 2017 Simone Stefani - sstefani@kth.se WHAT IS THIS SEMINAR ABOUT Branching Merging and rebasing Git team workflows Pull requests and forks WHAT IS THIS
More informationan introduction to git
gist /"jist/ n [AF, it lies, fr. gisir to lie, ultim. fr. L jacēre more at ADJACENT] (ca. 1711) 1 : the ground of a legal action 2 : the main point or part : ESSENCE 1 git /"git/ n
More informationHow to be a git. Dominic Mitchell
How to be a git Dominic Mitchell Git! It s new! Everybody s talking about it! What is it? Distributed Version Control Why Git? Fast Local Toolkit Widely used Github Toolkit lets other people build tools
More informationGit Memento. Author: Jérémie DECOCK Contact: Revision: 0.1 Date: 20/05/2016 License: Creative Commons 4.0 (CC BY-SA 4.
Git Memento Auth Jérémie DECOCK Contact: jd.jdhp@gmail.com Revision: 0.1 Date: 20/05/2016 License: Creative Commons 4.0 (CC BY-SA 4.0) Table of Contents 1 Setup Git 5 1.1 Configuration files 5 1.2 Configuration
More informationGit. (Why not CVS?... because Git.) Karel Zak Florian Festi Bart Trojanowski December 20, 2007
Git (Why not CVS?... because Git.) Karel Zak Florian Festi Bart Trojanowski December 20, 2007 Copyright 2007 Karel Zak Copyright 2007 Tomas Janousek (beamer template) Copyright 2007 Florian Festi Copyright
More informationRevision control. INF5750/ Lecture 2 (Part I)
Revision control INF5750/9750 - Lecture 2 (Part I) Problem area Software projects with multiple developers need to coordinate and synchronize the source code Approaches to version control Work on same
More informationRSARTE Git Integration
RSARTE Git Integration Anders Ek IBM INTRODUCTION...3 EGIT BRIEF OVERVIEW...3 GETTING STARTED...6 ECLIPSE PROJECTS AND GIT REPOSITORIES...6 ACCESSING A REMOTE GIT REPOSITORY...7 IMPORTING AN EXISTING REPOSITORY...8
More information