CS/COE 1520 Recitation Week 2

Slides:



Advertisements
Similar presentations
Version Control CS440 – Introduction to Software Engineering © 2014 – John Bell Based on slides prepared by Jason Leigh for CS 340 University.
Advertisements

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.
Github. Download & install git   Git bash  Git GUI.
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
1 CSE 390 “Lecture 11” Version control with Git slides created by Ruth Anderson, images from
Introduction to Git and Github Joshua imtraum.com.
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.
Peter Ogden and Josh Levine.  Motivation  High level overview  Walk through the common operations  How not to break things (too badly)
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 8-Oct-15.
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.
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.
Team 708 – Hardwired Fusion Created by Nam Tran 2014.
Git Fundamentals Rochelle Terman 13 January 2014.
Git Basics. Git stores data as snapshots of the project over time When commit Save all the files If files have not changed, point to the previous identical.
1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall
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.
© 2015 by Herb Holyst Introduction to git Cytomics Workshop December, 2015.
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.
INTRODUCTION TO GIT. Install Egit for eclipse Open eclipse->Help->Install New Software Search for one of the following -
Git How to 1. Why Git To resolve problems in lab exams (accidental deletions) Use existing Libraries with ease (Statistics and Computer) Prepare undergraduates.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 28-Jun-16.
Jun-Ru Chang Introduction GIT Jun-Ru Chang
Backing up a machine with git
Basics of GIT for developers and system administrators
M.Sc. Juan Carlos Olivares Rojas
L – Modeling and Simulating Social Systems with MATLAB
CReSIS Git Tutorial.
Git-Github Safa Prepared for the course COP4331 – Fall 2016.
Version Control.
Git Practice walkthrough.
Setting up Git, GitBash, and GitHub
Setting up Git, GitBash, and GitHub
SSE2034: System Software Experiment 3 Spring 2016
L – Modeling and Simulating Social Systems with MATLAB
Version Control overview
Version control with Git
Software Engineering for Data Scientists
Storing, Sending, and Tracking Files Recitation 2
An introduction to version control systems with Git
Version Control with Git accelerated tutorial for busy academics
SU Development Forum Introduction to Git - Save your projects!
Distributed Version Control with git
Akshay Narayan git up to speed with RCS Akshay Narayan
An introduction to version control systems with Git
The Big Picture
SIG: Open Week 1: GitHub Tim Choh.
Setting up Git, GitBash, and GitHub
An introduction to version control systems with Git
Git-Github Tools Prepared for COP4331. Git-Github Tools Prepared for COP4331.
Version control with Git
Source Code Repository
Git and Jira Tutorials Kan Qi
Using Github.
Version control with Git
Version control with Git
Introduction to Git and GitHub
Version Control with Git
Version Control with Git and GitHub
Version/revision control via git
Introduction to Git and Github
Git GitHub.
Introduction to The Git Version Control System
Advanced Git for Beginners
Presentation transcript:

CS/COE 1520 Recitation Week 2 TA: Jeongmin Lee

TA: Jeong-Min Lee jlee@cs.pitt.edu

Office Hours and Location Monday: 2:00 – 4:00pm and by appointment. Location: 5324 Senott Square

Plan for today GIT demo JavaScript Discussion

Disclaimer Note that slides on Git tutorial were taken from a slide by “Radoslav Georgiev https://www.slideshare.net/GameCraftBulgaria/git hub-basics

Some basic terminology git = the shell command to work with Git repo = Repository, where the code for a given project is kept commit = verb, means push the code to the server (in Git, commit = (commit + push) diff = the difference between two versions of a file SSH = Secure SHell – Network protocol for communication between machines RSA = Rivest, Shamir, Adleman – public-key cryptography algorithm

Let’s Do It: Configure 1. Make your own GitHub Repository Make an Github account first Make a your own repository on Github 2. On your computer, install git installer and open a terminal/bash Windows: https://git-for-windows.github.io/ On terminal/bash, type >> git

Let’s Do It: Configure 3. Configure your info Name and email address Github API token On the GitHub website, click user image > “Settings” > “Personal access tokens” and click “generate new token” button. $ git config –global user.name “Firstname Lastname” $ git config –global user.email “email@email.com” $ git config –global github.user username $ git config –global github.token the_token

Let’s Do It: Create a repo Okay, lets add it ! And commit it  And for the sake of learning, lets edit it again $ git add omgrofl.txt $ git commit –m ‘This is a commit message’ Some gitorish output $ echo “roflcopter” >> omgrofl.txt $ cat omgrofl.txt rofllol roflcopter

Let’s Do It: Create a repo And now, lets see : Outputs : Almost there $ git status # On branch master # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: omgrofl.txt $ git add omgrofl.txt $ git status

How it works? Staging area.

What about Github ? Remotes ? Okay, you suck, there’s nothing @ Github Damn. Enter magic! Git commits locally, pushes remotely !!!!!!! Add the remote when the repo is created (git init, remember ? ) Want to see the remotes ? $ git remote add origin git@github.com:UserName/ProjectName.git $ git remote add [name] [url] $ git remote -v

What about Github ? Push it up Okay, we have committed and added a remote to Github. It’s time to push  Open up the repo in Github and enjoy ^_^ The push command explained : Branches are black magic for later  There’s a big chance that the branch you are pushing to will be named “master” $ git push origin master Enter passphrase !  $ git push [remote_name] [branch]

RECAP git init git add somefile.txt git commit –m ”msg” git push origin master

Pull from Remote to Local You can get what’s freshly in remote repository to your local with git pull command $ git pull origin master $ git pull [remote_name] [branch]

Quiz Ungraded