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.

Slides:



Advertisements
Similar presentations
TortoiseSVN By Group 1 Team B. Installing TortoiseSVN.
Advertisements

Version Control CS440 – Introduction to Software Engineering © 2014 – John Bell Based on slides prepared by Jason Leigh for CS 340 University.
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
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.
Peter Ogden and Josh Levine.  Motivation  High level overview  Walk through the common operations  How not to break things (too badly)
Created by: Maria Abrahms Modified Date: Classification: How to get it done Contributing to OpenStack.
GIT An introduction to GIT Source Control. What is GIT (1 of 2) ▪ “Git is a free and open source distributed version control system designed to handle.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 8-Oct-15.
ITEC 370 Lecture 16 Implementation. Review Questions? Design document on F, feedback tomorrow Midterm on F Implementation –Management (MMM) –Team roles.
Drexel University Software Engineering Research Group Git for SE101 1.
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.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
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
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.
Introduction to Git - Chirag Dani. Objectives Basics of Git Understanding different “Mindset of Git” Demo - Git with Visual Studio.
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.
Lecture 5 Remotes Sign in on the attendance sheet! Turn in homework at the front!
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
M.Sc. Juan Carlos Olivares Rojas
L – Modeling and Simulating Social Systems with MATLAB
Git-Github Safa Prepared for the course COP4331 – Fall 2016.
Version Control.
Setting up Git, GitBash, and GitHub
L – Modeling and Simulating Social Systems with MATLAB
Version Control overview
Version Control with Git and GitHub
Version Control Systems
Storing, Sending, and Tracking Files Recitation 2
An introduction to version control systems with Git
Distributed Version Control with git
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.
Git CS Fall 2018.
Version control with Git
Introduction to Git and GitHub
Version Control with Git and GitHub
Version/revision control via git
Introduction to Git and Github
1. GitHub.
Introduction to The Git Version Control System
Presentation transcript:

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 (.) refers to the current directory ls displays directory contents

Create a Project from Scratch git init project creates a project directory git add adds files to the directory git commit –m"message" commits the changes $ cd projects $ git init project1 *** create file1.txt *** $ cd project1 $ git add file1.txt $ git commit -m "Committing project 1" Create a projects directory on ned in 216

Create a Project from an Existing Directory git init. initializes the current directory git add * adds all files in the directory git commit –m"message" commits the changes $ cd../projects/project2 $ git init. $ git add * $ git commit -m "Committing project 2" Create a projects/project2 directory, and create a file in that directory called file2.txt

View your Commit Logs git log displays your log history

Check your Status git status displays the status of the repo In the projects/project2 directory, modify file2.txt and create a file called file3.txt modified file new file

Update your repo add the file commit the changes check the status

Try It Navigate to the projects directory Initialize project3 Create file4.txt in the directory – Add file4 to the repo – View Git status – Commit the change Modify file4 – View Git status – Commit the change Create file5.txt in project3 – View Git status – Add it to the repo – Commit the change

Access a Git Project from GitHub Most open source projects have a read-only Git URL Visit github.com  Explore git clone copies repository content to your system

Access a Git project URL --  Create a new folder from the command line  Change to the new folder Pull down a copy of a github project  Display directory contents Right click here to Edit  Paste, or press the Insert key on the keyboard

Keep Current git pull will bring down latest content If you've made conflicting changes, this may not work easily You can always delete the directory contents and pull down a fresh copy

Sharing on GitHub Create a GitHub accountGitHub

Pick a Plan With a free account, all repos are public.

Create a Repository on GitHub

Set up the Repository

Set up your GitHub "origin" Copy the URL from GitHub In Bash: $git remote add origin Paste URL You can paste by right clicking

Push to GitHub $git push -u origin master Copies your project to GitHub Enter your credentials You should only have to do this once! "Origin" is GitHub "Master" is local copy

Voila!

Add a ReadMe

Pull the ReadMe into your Local copy Copy URL from GitHub In Bash: $ git pull URL

Try It Create a GitHub repo for Project1 Push your local copy to the repo Add a ReadMe file in GitHub Pull the ReadMe to your local copy Modify file1.txt in Project1 Add a new file to Project1 Commit your changes (don't forget to add the new file to the repo first!) Push your changes to GitHub

Deleting a Repo from GitHub Select the Repository Click Settings Click "Delete this repository "under Danger Zone – This cannot be undone! Type the name of the repository to confirm

Git for Windows Download Git Install Git Use default options

Open Git Bash

Configure Git Configure username Configure password Everything else is just the same! This creates two key-value pairs, used for tracking commits. $ git config --global user.name "Joe Shmo" $ git config --global user.

Store your Credentials Download Windows Credential Store for GitWindows Credential Store for Git Run It! Click Yes

Summary Check status git status Add a remote location to upload files git remote add origin url Push changes from local to remote git push -u origin master Pull changes from remote to local git pull url Initialize a project git init projectName git init. Add a file git add fileName git add * Commit changes git commit -m "remark" View the log git log

Git Isn't Just for Code You can commit anything to a Git repository – Pictures – Word docs – PowerPoint presentations – Videos – Music – etc.

Learn More GitGuys Git Documentation Git Cheat Sheet