an introduction to git
|
|
- Shonda Clarke
- 6 years ago
- Views:
Transcription
1 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 <the of an argument> 1 git /"git/ n [var. of get, term of abuse, fr. 2 get] (1929) Brit : a foolish or worthless person 2 git dial var of GET git-go var of GET-GO git tern /"gi-t@rn/ n [ME giterne, fr. MF guiterne, modif. of OSp guitarra guitar] (14c) : a medieval guitar an introduction to git Antonio Cervone February 29, 2012 Merriam-Webster s Collegiate Dictionary, p.529
2 A Distributed RCS Git is a distributed revision control system with an emphasis on speed. Git was initially designed and developed by Linus Torvalds for Linux kernel development. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server.
3 Start up configure general information git config --global user.name="<your Name>" git config --global \ > user. =<name@polimi.it> view configuration (local & global) ant@mox> git config --list
4 Create/clone a remote repo ant@mox> git init or from a remote source ant@mox> git clone \ > <username>@cmcsforge.epfl.ch:/gitroot/lifev/lifev autotools stuff ant@mox> cd lifev ant@mox> git clone \ > <username>@cmcsforge.epfl.ch:/gitroot/lifev/admin
5 Protocols PROTOCOL PORT READ WRITE PUBLIC ssh 22 YES YES NO git 9418 YES YES YES/NO http 80 YES NO YES not exclusive!
6 Edit! modify the files in the repo edit the sources... show status of the repo git status # On branch <branch_name> # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: file1.cpp # # 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: file2.cpp # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # file3.cpp
7 Commit show differences with previous state git diff <branch> <files> stage files for a commit ant@mox> git add <edited_files> create a new commit ant@mox> git commit... <vim editor will come up, write a description for the commit>
8 Get other branches list local branches git branch b1 * b2 master list remote branches ant@mox> git branch -r list all branches ant@mox> git branch -a LifeV branch name policy YYYYMMDD_<meaningful_name>
9 Branching create create new branch ant@mox> git branch <shiny_new_branch> ant@mox> git checkout <shiny_new_branch> or ant@mox> git checkout -b <shiny_new_branch>
10 Branching delete delete a branch ant@mox> git checkout master ant@mox> git branch -d <branch_to_delete> will cause an error if not merged with master! to delete without merging ant@mox> git branch -D <branch_to_delete> delete a remote branch ant@mox> git push origin :<branch_to_delete> the syntax comes from the generic generic push command git push <remotename> <localbranch_name>:<remotebranch_name> so we push an empty branch into the remote branch to be deleted
11 Branching merge merge a branch ant@mox> git checkout master ant@mox> git merge <branch_name> Updating e0f73f9..cd928c7 Fast-forward
12 Branching merge merge a branch ant@mox> git checkout master ant@mox> git merge <branch_name> Updating e0f73f9..cd928c7 Fast-forward conflicts may arise! CONFLICT (content): Merge conflict in file.cpp Automatic merge failed; fix conflicts and then commit the result.
13 Branching solve conflicts 1 manual <<<<<<< HEAD... =======... >>>>>>> branch_name
14 Branching solve conflicts 1 manual <<<<<<< HEAD... =======... >>>>>>> branch_name text editor/gui ant@mox> git mergetool merge tool candidates: meld opendiff kdiff3 tkdiff xxdiff tortoisemerge gvimdiff diffuse ecmerge p4merge araxis emerge vimdiff
15 Branching solve conflicts 2 after the diff are removed ant@mox> git add file.cpp a commit is needed when all the conflicts are solved! ant@mox> git commit
16 Branching stash checkout with hanging modifications is forbidden! ant@mox> git checkout master error: Your local changes to the following files would be overwritten by checkout:... we can stash modifications ant@mox> git stash save and bring them back ant@mox> git stash { pop apply } remember to clear the stash! ant@mox> git stash list ant@mox> git stash clear
17 Collaboration - remote share a branch with a remote repo ant@mox> git push <repo_name> <branch_name> ant@mox> git pull <repo_name> <branch_name> setup remote link ant@mox> git config branch.<branch_name>.remote \ > <repo_name> ant@mox> git config branch.<branch_name>.merge \ > refs/heads/<branch_name> the others can access the branch with alessio@mox> git checkout <branch_name> nur@mox> git checkout --track -b <branch_name> \ > <repo_name>/<branch_name>
18 Collaboration - local share a branch locally nur@mox> git remote add ant_repo \ > /path/to/ant/git/repo nur@mox> git fetch ant_repo nur@mox> git checkout --track -b shared_branch \ > ant_repo/my_super_secret_branch push modifications to the original branch nur@mox> nur@mox> git checkout shared_branch git push ant_repo shared_branch or pull them from the original repo ant@mox> git remote add nur_repo /path/to/nur/git/repo ant@mox> git fetch nur_repo /path/to/nur/git/repo ant@mox> git checkout my_super_secret_branch ant@mox> git pull nur_repo/shared_branch check for read/write permissions!
19 Common issues - I Q edited on master branch
20 Common issues - I Q A edited on master branch a simple checkout will do it ant@mox> git checkout -b new_branch
21 Common issues - I Q A edited on master branch a simple checkout will do it ant@mox> git checkout -b new_branch Q already committed to master branch
22 Common issues - I Q A edited on master branch a simple checkout will do it ant@mox> git checkout -b new_branch Q already committed to master branch A create a new branch and delete the commit on master ant@mox> git branch new_branch ant@mox> git reset --hard HEAD~1 ant@mox> git checkout new_branch
23 Common issues - II Q commit in wrong branch
24 Common issues - II Q A commit in wrong branch cherry-pick it to the correct one ant@mox> git checkout correct_branch ant@mox> git cherry-pick commit_hash
25 Common issues - II Q A commit in wrong branch cherry-pick it to the correct one ant@mox> git checkout correct_branch ant@mox> git cherry-pick commit_hash Q cannot get the branch of the local remote
26 Common issues - II Q A commit in wrong branch cherry-pick it to the correct one ant@mox> git checkout correct_branch ant@mox> git cherry-pick commit_hash Q A cannot get the branch of the local remote missing references to the other branches ant@mox> git fetch remote_name ant@mox> git remote show remote_name
27 Common issues - III Q the merge has gone bananas!
28 Common issues - III Q A the merge has gone bananas! give up the merge and try again ant@mox> git merge <branch_to_be_merged> ant@mox> #$!&#%$&ˆ ant@mox> git reset --hard <original_branch>
29 Common issues - III Q A the merge has gone bananas! give up the merge and try again ant@mox> git merge <branch_to_be_merged> ant@mox> #$!&#%$&ˆ ant@mox> git reset --hard <original_branch> Q i want a file from that branch!
30 Common issues - III Q A the merge has gone bananas! give up the merge and try again ant@mox> git merge <branch_to_be_merged> ant@mox> #$!&#%$&ˆ ant@mox> git reset --hard <original_branch> Q A i want a file from that branch! get it or adopt a merge strategy ant@mox> git checkout <branch> <files> ant@mox> git merge <branch> -X <ours/theirs/... >
31 Common issues - IV Q git push refuses to work remote: error: refusing to update checked out branch: refs/heads/<branch_name> remote: error: By default, updating the current branch in a non-bare repository remote: error: is denied, because it will make the index and work tree inconsistent remote: error: with what you pushed, and will require git reset -hard to match remote: error: the work tree to HEAD. remote: error: remote: error: You can set receive.denycurrentbranch configuration variable to remote: error: ignore or warn in the remote repository to allow pushing into remote: error: its current branch; however, this is not recommended unless you remote: error: arranged to update its work tree to match what you pushed in some remote: error: other way. remote: error: remote: error: To squelch this message and still keep the default behaviour, set remote: error: receive.denycurrentbranch configuration variable to refuse. To <repo>! [remote rejected] <branch_name> -> <branch_name> (branch is currently checked out)
32 Common issues - IV Q git push refuses to work remote: error: refusing to update checked out branch: refs/heads/<branch_name> remote: error: By default, updating the current branch in a non-bare repository remote: error: is denied, because it will make the index and work tree inconsistent remote: error: with what you pushed, and will require git reset -hard to match remote: error: the work tree to HEAD. remote: error: remote: error: You can set receive.denycurrentbranch configuration variable to remote: error: ignore or warn in the remote repository to allow pushing into remote: error: its current branch; however, this is not recommended unless you remote: error: arranged to update its work tree to match what you pushed in some remote: error: other way. remote: error: remote: error: To squelch this message and still keep the default behaviour, set remote: error: receive.denycurrentbranch configuration variable to refuse. To <repo>! [remote rejected] <branch_name> -> <branch_name> (branch is currently checked out) A use a bare repo ant@mox> git clone -bare <repo> <repo>.git
33 Tips & tricks - I gitk is your friend
34 Tips & tricks - I gitk is your friend do small, atomic commits
35 Tips & tricks - I gitk is your friend do small, atomic commits read git output
36 Tips & tricks - I gitk is your friend do small, atomic commits read git output branch in PS1 : add to.bashrc function GitBranch { _branch="$(git branch 2>/dev/null sed -e "/^\s/d" -e "s/^\*\s//")" test -n "$_branch" && echo -e "@$_branch" } PS1='\u@\h:\w$(GitBranch)> '
37 Tips & tricks - I gitk is your friend do small, atomic commits read git output branch in PS1 : add to.bashrc function GitBranch { _branch="$(git branch 2>/dev/null sed -e "/^\s/d" -e "s/^\*\s//")" test -n "$_branch" && echo -e "@$_branch" } PS1='\u@\h:\w$(GitBranch)> ' watch out for non history-safe commands after pushing! ( cherry-pick, rebase,... )
38 Tips & tricks - I gitk is your friend do small, atomic commits read git output branch in PS1 : add to.bashrc function GitBranch { _branch="$(git branch 2>/dev/null sed -e "/^\s/d" -e "s/^\*\s//")" test -n "$_branch" && echo -e "@$_branch" } PS1='\u@\h:\w$(GitBranch)> ' watch out for non history-safe commands after pushing! ( cherry-pick, rebase,... ) everything else (and more... ) on git
39 Tips & tricks - II bash autocompletion contrib/completion/git-completion.bash;hb=head
40 Tips & tricks - II bash autocompletion contrib/completion/git-completion.bash;hb=head colored output ant@mox> git config --global color.ui true
41 Tips & tricks - II bash autocompletion contrib/completion/git-completion.bash;hb=head colored output ant@mox> git config --global color.ui true no empty push ant@mox> git config --global push.default nothing
42 Tips & tricks - II bash autocompletion contrib/completion/git-completion.bash;hb=head colored output ant@mox> git config --global color.ui true no empty push ant@mox> git config --global push.default nothing creating archives ant@mox> git archive <commit_or_branch> gzip > \ > <archive_name>.tgz
Source 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 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 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 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 informationVersion 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 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 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 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 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 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 informationAbout SJTUG. SJTU *nix User Group SJTU Joyful Techie User Group
About SJTUG SJTU *nix User Group SJTU Joyful Techie User Group Homepage - https://sjtug.org/ SJTUG Mirrors - https://mirrors.sjtug.sjtu.edu.cn/ GitHub - https://github.com/sjtug Git Basic Tutorial Zhou
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 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 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 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 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 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 informationGETTING STARTED WITH. Michael Lessard Senior Solutions Architect June 2017
GETTING STARTED WITH Michael Lessard Senior Solutions Architect June 2017 Agenda What is Git? Installation of Git Git basis Github First steps with Git 2 WHAT IS GIT? What is Git? Started in 2005 Created
More informationTopics covered. Introduction to Git Git workflows Git key concepts Hands on session Branching models. Git 2
Git Git 1 Topics covered Introduction to Git Git workflows Git key concepts Hands on session Branching models Git 2 Introduction to Git Git 3 Version control systems The source files of a project changes
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 informationRevision Control. An Introduction Using Git 1/15
Revision Control An Introduction Using Git 1/15 Overview 1. What is revision control? 2. 30,000 foot view 3. Software - git and gitk 4. Setting up your own repository on onyx 2/15 What is version control?
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. 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 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 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 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 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 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 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 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 informationIntroduction to Supercomputing
Introduction to Supercomputing TMA4280 Introduction to development tools 0.1 Development tools During this course, only the make tool, compilers, and the GIT tool will be used for the sake of simplicity:
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 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 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. 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 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 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 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 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 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 informationImproving Your Life With Git
Improving Your Life With Git Lizzie Lundgren elundgren@seas.harvard.edu Graduate Student Forum 26 April 2018 Scenarios to Avoid My code was deleted from 90-day retention! Crap, I can t remember what I
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 informationSoftware Development I
6.148 Software Development I Two things How to write code for web apps. How to collaborate and keep track of your work. A text editor A text editor A text editor Anything that you re used to using Even
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 informationGIT FOR SYSTEM ADMINS JUSTIN ELLIOTT PENN STATE UNIVERSITY
GIT FOR SYSTEM ADMINS JUSTIN ELLIOTT PENN STATE UNIVERSITY 1 WHAT IS VERSION CONTROL? Management of changes to documents like source code, scripts, text files Provides the ability to check documents in
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 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 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 informationLecture 6 Remotes. Sign in on the attendance sheet!
Lecture 6 Remotes Sign in on the attendance sheet! Midterm Review Everyone did great! What We ve Learned So Far Creating and cloning repositories git init, git clone Linear commit histories and diffs git
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 informationGit GitHub & secrets
Git&GitHub secrets git branch -D local-branch git push origin :local-branch Much like James Cameron s Avatar, Git doesn t make any goddamn sense This talk throws a ton of stuff at you This talk throws
More informationGitting things done. Hands-on introduction to git niceties. Jan Urbański Ducksboard
Gitting things done Hands-on introduction to git niceties Jan Urbański jan@ducksboard.com Ducksboard Atlassian Git Party, Madrid, September 25, 2012 Jan Urbański (Ducksboard) Gitting things done Atlassian
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 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 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 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 informationGIT tutorial. David Parsons, Soraya Arias, Thomas Calmant November, Preamble 2
GIT tutorial David Parsons, Soraya Arias, Thomas Calmant November, 2017 Contents 1 Preamble 2 2 First steps 2 2.1 Basic configuration.......................................... 2 2.2 Create your very first
More informationSource Code Management wih git
Source Code Management wih git Matthieu Herrb April 27 http://homepages.laas.fr/matthieu/cours/git.pdf License This work is licensed under a Creative Commons Attribution-ShareAlike 3. Unported License.
More informationLAB MANUAL GIT BY PRATIK JAIN. To start with git bash, we need to authenticate ourselves so that for every commit, git can use this information.
LAB MANUAL GIT BY PRATIK JAIN STARTING WITH GIT : To start with git bash, we need to authenticate ourselves so that for every commit, git can use this information. We can remove -- global option to override
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 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 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. 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 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 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 informationAlgorithm Engineering
Algorithm Engineering Jens K. Mueller jkm@informatik.uni-jena.de Department of Mathematics and Computer Science Friedrich Schiller University Jena Tuesday 21 st October, 2014 Version Control with Git Version
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 informationUSING GIT FOR AUTOMATION AND COLLABORATION JUSTIN ELLIOTT - MATT HANSEN PENN STATE UNIVERSITY
USING GIT FOR AUTOMATION AND COLLABORATION JUSTIN ELLIOTT - MATT HANSEN PENN STATE UNIVERSITY AGENDA Version control overview Introduction and basics of Git Advanced Git features Collaboration Automation
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 informationVersion Control Systems
Version Control Systems Version Control In the 2 nd edition of Pro Git, version control is described as a system that records changes to a file or set of files over time so that you can recall specific
More informationBasic git. Interactive.
1 / 45 Basic git. Interactive. Emanuele Olivetti 1 Rike-Benjamin Schuppner 2 1 NeuroInformatics Laboratory (NILab) Bruno Kessler Foundation (FBK), Trento, Italy Center for Mind and Brain Sciences (CIMeC),
More informationVersion Control for Fun and Profit
Version Control for Fun and Profit Chris Brady Heather Ratcliffe The Angry Penguin, used under creative commons licence from Swantje Hess and Jannis Pohlmann. Warwick RSE 30/11/2017 Version control 30/11/2017
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 Branching. Chapter What a Branch Is
Chapter 3 Git Branching Nearly every VCS has some form of branching support. Branching means you diverge from the main line of development and continue to do work without messing with that main line. In
More informationΘερινό Σχολείο, Ιουλίου git. Αχιλλέας Πιπινέλης. Μονάδα Αριστείας ΕΛ/ΛΑΚ ΤΕΙ Αθήνας
Θερινό Σχολείο, 14 20 Ιουλίου 2014 git Αχιλλέας Πιπινέλης Μονάδα Αριστείας ΕΛ/ΛΑΚ ΤΕΙ Αθήνας Overview Version control in general Centralized version control systems Distributed version control systems
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 information1. Git. Robert Snapp
. Git Robert Snapp snapp@cs.uvm.edu Department of Computer Science University of Vermont CS 3 (UVM). Git Fall 0 / Git CS 3 (UVM). Git Fall 0 / Setting your defaults in /.git > git config --global user.name
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 Resolve Conflict Using Mine Command Line
Git Resolve Conflict Using Mine Command Line We'll explore what approaches there are to resolve the conflict, and then we'll Please, fix them up in the work tree, and then use 'git add/rm ' as appropriate
More information#25. Use Source Control in a Single- Developer Environment
#25. Use Source Control in a Single- Developer Environment How Do I...? Part 1: Install Source Control 1. Browse to the ClassFiles folder on your desktop, and then double-click Git-[version]- preview-[date].exe.
More informationBasics of Git GitHub
Basics of Hub Why this Webinar? You registered for Microsoft codefundo++ Deadline to submit your idea is Oct 12th, 23:59 IST Getting you started with & Hub Agenda What is Version Control? What is the difference
More informationFrom Commits to Collaboration: A Git Tutorial for Social Scientists
From Commits to Collaboration: A Git Tutorial for Social Scientists Paul Sangrey, University of Pennsylvania December 12, 2017 The Replication Crisis continues to heat up discussion across social science.
More informationLecture 2: Data in Linguistics, Git/GitHub, Jupyter Notebook. LING 1340/2340: Data Science for Linguists Na-Rae Han
Lecture 2: Data in Linguistics, Git/GitHub, Jupyter Notebook LING 1340/2340: Data Science for Linguists Na-Rae Han Objectives What do linguistic data look like? Tools: You should be taking NOTES! Git and
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 informationAn Overview of Version Control Systems. Guest lecture Juhan Ernits Computer Systems Engineering
An Overview of Version Control Systems Guest lecture Juhan Ernits Computer Systems Engineering 14.12.2012 Prelude: What killed Motorola? Based on http://www.theregister.co.uk/2012/11/29/rockman_on_motorola/
More informationDistributed Version Control Git
Distributed Version Control Git Jakob Lykke Andersen jlandersen@imada.sdu.dk Tuesday 10 th October, 2017 Contents 1 Introduction 1 1.1 Notation......................................... 2 1.2 Getting Help......................................
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 informationVersion Control with GIT: an introduction
Version Control with GIT: an introduction Muzzamil LUQMAN (L3i) and Antoine FALAIZE (LaSIE) 23/11/2017 LaSIE Seminar Université de La Rochelle Version Control with GIT: an introduction - Why Git? - What
More informationThe Old World. Have you ever had to collaborate on a project by
What the Git? The Old World Have you ever had to collaborate on a project by Shuttling a USB drive back and forth Using Dropbox E-mailing your document around Have you ever accidentally deleted someone
More informationGithub Webinar Documentation
Github Webinar - 2012.01.10 Documentation Release 0.1 Evan Culver October 21, 2016 Contents 1 Session 1 (8:00a - 8:50a) 1 2 Session 2 (9:00a - 9:50a) 3 3 Session 3 (10:00a - 10:50a) 5 3.1 Git log..................................................
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 informationGit and GitHub. Dan Wysocki. February 12, Dan Wysocki Git and GitHub February 12, / 48
Git and GitHub Dan Wysocki February 12, 2015 Dan Wysocki Git and GitHub February 12, 2015 1 / 48 1 Version Control 2 Git 3 GitHub 4 Walkthrough Dan Wysocki Git and GitHub February 12, 2015 2 / 48 Version
More informationEugene, Niko, Matt, and Oliver
213/513 Linux/Git Bootcamp Eugene, Niko, Matt, and Oliver outline 1. ssh but also Windows ssh client especially 2. bash commands + navigating Linux 3. VIM and VS Code 4. Git how to ssh 1. on OS X/Linux:
More informationGIT DISTRIBUTED IS THE NEW CENTRALISED
GIT DISTRIBUTED IS THE NEW CENTRALISED BEGINNER WORKSHOP FETCH YOURSELF LAPTOP INSTALLING linux: sudo apt-get install git linux: sudo yum install git osx: brew install git osx: macports install git windows:
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 informationWorking with GIT. Florido Paganelli Lund University MNXB Florido Paganelli MNXB Working with git 1/47
Working with GIT MNXB01 2017 Florido Paganelli Lund University florido.paganelli@hep.lu.se Florido Paganelli MNXB01-2017 - Working with git 1/47 Required Software Git - a free and open source distributed
More informationGit: Distributed Version Control
Git: Distributed Version Control Computer Science and Engineering College of Engineering The Ohio State University Lecture 3 Demo Prep: Empty (but initialized) repo Linear development: Create, edit, rename,
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 informationHuman Version Control
Version Control Any large, useful software system... will undergo many changes in its lifetime multiple programmers making changes who may work on the code concurrently and independently The process of
More informationWhat is git? Distributed Version Control System (VCS); Created by Linus Torvalds, to help with Linux development;
What is git? Distributed Version Control System (VCS); Created by Linus Torvalds, to help with Linux development; Why should I use a VCS? Repositories Types of repositories: Private - only you and the
More information