Using Git with collaboration, code review, and code management for open source and private projects. & Using Terminal to create, and push commits to repositories.

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

Simple Git Steve Pieper. Topics Git considerations and Slicer Git as if it were svn Git the way it is meant to be.
Git Branching What is a branch?. Review: Distributed - Snapshots Files are stored by SHA-1 hash rather than filename Stored in git database in compressed.
LECTURE 14 OCT 22, 2010 Git, in graphic form. Change tracking basics.
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.
Version Control with git. Version Control Version control is a system that records changes to a file or set of files over time so that you can recall.
1 CSE 390 “Lecture 11” Version control with Git slides created by Ruth Anderson, images from
Introduction to Git and Github Joshua imtraum.com.
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 ▪Version control is a system that records changes to a file or set of files over time so.
Why you should be using Version Control. Matt Krass Electrical/Software Engineer November 22, 2014.
With Mercurial and Progress.   Introduction  What is version control ?  Why use version control ?  Centralised vs. Distributed  Why Mercurial ?
Git – versioning and managing your software L. Grewe.
ITEC 370 Lecture 16 Implementation. Review Questions? Design document on F, feedback tomorrow Midterm on F Implementation –Management (MMM) –Team roles.
Git (Get) it done right! Practical Applied Version Control for Drupal site developers Peter Chen - Stanford School of Engineering Technical Webmaster.
Version Control. How do you share code? Discussion.
Version Control Systems academy.zariba.com 1. Lecture Content 1.What is Software Configuration Management? 2.Version Control Systems (VCS) 3.Basic Git.
…using Git/Tortoise Git
Git workflow and basic commands By: Anuj Sharma. Why git? Git is a distributed revision control system with an emphasis on speed, data integrity, and.
Ernst Peter Tamminga Get started with GitHub XCESS expertise center b.v. Netherlands.
SWEN 302: AGILE METHODS Roma Klapaukh & Alex Potanin.
Information Systems and Network Engineering Laboratory II DR. KEN COSH WEEK 1.
Team 708 – Hardwired Fusion Created by Nam Tran 2014.
Git Fundamentals Rochelle Terman 13 January 2014.
Introduction to GitHub Alex Bigazzi Dec. 4, 2013 ITS Lab GitHub Introduction1.
By: Anuj Sharma. Topics covered:  GIT Introduction  GIT Benefits over different tools  GIT workflow  GIT server creation  How to use GIT for first.
Version Control System Lisa Palathingal 03/04/2015.
GIT.
Intro to Git presented by Brian K. Vagnini Hosted by.
Lecture 2 Making Simple Commits Sign in on the attendance sheet! credit:
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.
Information Systems and Network Engineering Laboratory I DR. KEN COSH WEEK 1.
Technical Presentation by: David Spano. About Git (VCS) Simple Git Commands Branching Github Git GUI Summary.
Git How to 1. Why Git To resolve problems in lab exams (accidental deletions) Use existing Libraries with ease (Statistics and Computer) Prepare undergraduates.
1. A new git is initialized as a remote repository JohnRemote repositoryPeter master C0 CodingWhileBlack.com PROPEL CODING
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 workflows: using multiple branches for parallel development SE-2800 Dr. Mark L. Hornick 1.
Information Systems and Network Engineering Laboratory II
I Don’t Git It: A beginner’s guide to git Presented by Mathew Robinson
Git and GitHub primer.
GIT AND GITHUB WORKSHOP
Version Control.
Git Practice walkthrough.
CS4961 Software Design Laboratory I Collaboration using Git and GitHub
Discussion 11 Final Project / Git.
Version Control overview
Software Engineering for Data Scientists
Macaualy2 Workshop Berkeley 2017
Storing, Sending, and Tracking Files Recitation 2
An introduction to version control systems with Git
Akshay Narayan git up to speed with RCS Akshay Narayan
The Big Picture
SIG: Open Week 1: GitHub Tim Choh.
Getting Started with Git and Bitbucket
Part 1: Editing and Publishing Files
Source Code Repository
Version control with Git Part II
Using Github.
Git CS Fall 2018.
Git started with git: 2018 edition
GitHub and Git.
GitHub 101 Using Github and Git for Source Control
Git GitHub.
1. GitHub.
Presentation transcript:

Using Git with collaboration, code review, and code management for open source and private projects. & Using Terminal to create, and push commits to repositories hosted on Github. How the heck do i use github & Command line?

Benefits of using Github GitHub is the largest code host on the planet with over 11.4 million repositories Integrated issue tracking via Pull Requests Collaborative code review Create Teams & Organizations Receive and give contributions to projects Track your progress and projects you've worked on

Benefits of using Command Line vs Git GUI Git was written for command line Using Git through an application is actually a hack Git GUIs make git more difficult and complicated Git terminal commands are simple. It doesn’t need an application, often times the applications will create weird commits, weird branches, and screw up your files. It’s just faster from the command line.

Github Workflow 1.Create a Repository: This is the master branch and should be working and ready to deploy at any time 2.Make a Branch: Branches are created so that you have an environment to try out new things and make changes to your code without wrecking the master branch 3.Add Commits: Whenever you add, edit, or delete a file, you're making a commit, and adding them to your branch. Commits help you keep track of your progress as you work on a branch.

Github Workflow 4.Open a Pull Request: Pull Requests initiate discussion about your commits. Pull Requests also provide a way to notify project maintainers about the changes you'd like them to consider. 5.Discuss & Review your changes: Once a Pull Request has been opened, the person or team reviewing your changes may have questions or comments. 6.Merge & Deploy: Once your Pull Request has been reviewed and the branch passes your tests, it's time to merge your code to the master branch for deployment. Github automatically compares both branches to see if the branches are able to be merged.

Git Commands git init - Initializes a git repository within the current directory you are in. git status - Shows the current status of the project, displays what files have been changes and which files are staged and ready to be commited. git add {index.html} - Adds the file to the staging area and git to start tracking the file and watch for changes. git commit -m “this is a commit message” - Stores our staged changes with a message describing what was changed. git log - Displays a log of all the commits we’ve made so far. git remote add origin - Connects the initialized repository to the remote repository located on github. git push -u origin master - Tells git where in the repository to put our commits. git pull origin master - Pulls down any new changes from the master repository to your local copy of the repository. git clone - Clones a local copy of a repository on github into a newly created directory, also initializes and begins watching the directory.

Lets see… but just how easy is it?

Useful Resources - Awesome beginner github & command line tutorial made by Codeschool A short guide by github on how to set up git Short guide by github on how to create and initialize a repository on github.

Questions: 1. What is the command to Initialize a git repository? Git init. 2.What is it called when you open an issue on a repository? Pull Request 3.What are 2 benefits of using command line over a git GUI? Its faster, simpler and more reliable. 4. What is the biggest draw to using github? Its collaborative.