Git Fundamentals Rochelle Terman 13 January 2014.

Slides:



Advertisements
Similar presentations
An Introduction By Sonali and Rasika.  Required for the project  Show the versions of your code in the course of development  Show versions of your.
Advertisements

Quick Guide To Git & Wiki. Why We Need Version Control Group projects – Prevents loss of code when trying to merge versions – Allows Individual projects.
Github. Download & install git   Git bash  Git GUI.
Git/Unix Lab March Version Control ●Keep track of changes to a project ●Serves as a backup ●Revert to previous version ●Work on the same files concurrently.
Hosted Git github. From an alumni (2010)  You know, the more time I spent in industry the better I've understood what a strong advocate you are for the.
Using svn and git with Unity and sdk
Chapter 4 The Online Repository CREATE A REPO ONLINE ON GITHUB.COM.
1 CSE 390 “Lecture 11” Version control with Git slides created by Ruth Anderson, images from
BIT 285: ( Web) Application Programming Lecture 07 : Tuesday, January 27, 2015 Git.
Git for Version Control These slides are heavily based on slides created by Ruth Anderson for CSE 390a. Thanks, Ruth! images taken from
Getting Started with GIT. Basic Navigation cd means change directory cd.. moves you up a level cd dir_name moves you to the folder named dir_name A dot.
Version control with Github August 26th, 2014 Daniel Schreij VU Cognitive Psychology departement
علیرضا فراهانی استاد درس: جعفری نژاد مهر Version Control ▪Version control is a system that records changes to a file or set of files over time so.
Created by: Maria Abrahms Modified Date: Classification: How to get it done Contributing to OpenStack.
Version control Using Git Version control, using Git1.
Drexel University Software Engineering Research Group Git for SE101 1.
Ernst Peter Tamminga Get started with GitHub XCESS expertise center b.v. Netherlands.
SWEN 302: AGILE METHODS Roma Klapaukh & Alex Potanin.
Team 708 – Hardwired Fusion Created by Nam Tran 2014.
1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall
Introduction to GitHub Alex Bigazzi Dec. 4, 2013 ITS Lab GitHub Introduction1.
1 GIT NOUN \’GIT\ A DISTRIBUTED REVISION CONTROL AND SOURCE CODE MANAGEMENT (SCM) SYSTEM WITH AN EMPHASIS ON SPEED. INITIALLY DESIGNED AND DEVELOPED BY.
Intro to Git presented by Brian K. Vagnini Hosted by.
Introduction to Git Yonglei Tao GVSU. Version Control Systems  Also known as Source Code Management systems  Increase your productivity by allowing.
CS 160 and CMPE/SE 131 Software Engineering February 16 Class Meeting Department of Computer Science Department of Computer Engineering San José State.
Hosted Git github. From an alumnus (2010)  You know, the more time I spent in industry the better I've understood what a strong advocate you are for.
It’s not just an insult from Harry Potter!. What is Git? Distributed Version Control System (DVCS) – Compared to a Centralized Version Control System.
Information Systems and Network Engineering Laboratory I DR. KEN COSH WEEK 1.
Introduction to Git - Chirag Dani. Objectives Basics of Git Understanding different “Mindset of Git” Demo - Git with Visual Studio.
Git How to 1. Why Git To resolve problems in lab exams (accidental deletions) Use existing Libraries with ease (Statistics and Computer) Prepare undergraduates.
Using Git with collaboration, code review, and code management for open source and private projects. & Using Terminal to create, and push commits to repositories.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
BIT 285: ( Web) Application Programming Lecture 07 : Tuesday, January 27, 2015 Git.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 28-Jun-16.
GIT Version control. Version Control Sharing code via a centralized DB Also provides for Backtracking (going back to a previous version of code), Branching.
Version Control Systems
Source Code Control For CSE 3902 By: Matt Boggus.
Information Systems and Network Engineering Laboratory II
Source Control Systems
L – Modeling and Simulating Social Systems with MATLAB
Discussion #11 11/21/16.
Git & Github Timothy McRoy.
Setting up Git, GitBash, and GitHub
Discussion 11 Final Project / Git.
L – Modeling and Simulating Social Systems with MATLAB
Version control, using Git
Software Engineering for Data Scientists
Macaualy2 Workshop Berkeley 2017
Version Control Systems
Storing, Sending, and Tracking Files Recitation 2
An introduction to version control systems with Git
BIT 286: (Web) Application Programming
The Big Picture
Setting up Git, GitBash, and GitHub
Getting Started with Git and Bitbucket
Using Github.
Git CS Fall 2018.
Introduction to Git and GitHub
Convert an Eclipse Project to a Git repository and push up to GitHub
Git started with git: 2018 edition
GitHub and Git.
GitHub 101 Using Github and Git for Source Control
Git Introduction.
Introduction to Git and Github
Carthage ios 8 onwards Dependency manager that streamlines the process of integrating the libraries into the project.
Git GitHub.
1. GitHub.
Introduction to The Git Version Control System
Using GitHub for Papyrus Models Jessie Jewitt – OAM Technology Consulting/ ARM Inc. January 29th, 2018.
Presentation transcript:

Git Fundamentals Rochelle Terman 13 January 2014

Game Plan 1.Introductions 2.Pedagogy + Plan: See one, do one, teach one 3.Set up: Sign up for Github, Install Git 4.Exercises 1.Pulling / Forking 2.Editing / Commits / Pushing 3.Tracking New Files 4.Fetch / Pull Requests / Collaboration 5.Discussion

3. Signup + Install 1.Go to Sign up if you don’t already have an account 3.Go to help.github.com/articles/set-up-githelp.github.com/articles/set-up-git 4.Follow the instructions to install git 5.(Optional) Follow instructions to set up default address (which should be the same as the you used to sign up to github) 6.Test whether git is working by opening up bash/terminal and typing git

4.1 Forking / Cloning 1.Go to github.com/dlab-berkeley/git-fundamentalsgithub.com/dlab-berkeley/git-fundamentals 2.Fork it by clicking on the “Fork” button on the top right. 3.Open you bash and find your current directory by typing pwd (mac) or %CD% (windows) 4.Migrate to the directory you want to store your git rep by typing cd /path/to/my/git/directory 5.E.g. if you want the desktop, enter: cd ~/Desktop 6.Copy the git clone URL 1.Type git clone

4.1 Forking / Cloning Help pages: 1.Forking + Cloning: (steps 1 and 2) 1.Basic unix commands: current_directory current_directory 1.Basic windows commands: in-Command-Prompt in-Command-Prompt

4.2 Editing / Commits / Pushing 1.Open the README.md file in a text editor (not microsoft word) 2.At the bottom, type in your name followed by your favorite Simpson’s episode, like so: Rochelle: The one where they go to Australia 3.In bash/terminal, migrate to your git rep by typing cd git-fundamentals 4.Type git status 5.To commit, type: git commit –am “ ” 6.To push, type: git push 7.Go back to your forked repo on github and check out what happened.

4.2 Editing / Commits / Pushing Help pages: 1.Creating your own repo (with info on commits + pushing): repo repo 1.Git basics – changing a repo: Recording-Changes-to-the-Repository Recording-Changes-to-the-Repository

4.3 Tracking New Files 1.Create a new txt file and type “TEST” in it 2.Go back to bash/terminal and try to commit your changes. (what happens?) 3.Type git status and note what is says. 4.To add a file for tracking, type: git add or git add. 5.Now commit and push Help: Git basics – adding / ignoring / staging files: the-Repository the-Repository

4.4 Pull / Fetch 1.Go to the d-lab repo (the original repo) you forked and look at the code 2.Navigate to your repo branch and press the green “Compare” button 3.Review your changes and then click the header to submit the pull request 4.To update your local branch, use git pull or git merge Help: Pull Requests: Help: Fetch / merge / pull upstream changes: