Git & Github Fundamental by Rajesh Kumar.

Similar documents
Git. SSE2034: System Software Experiment 3, Fall 2018, Jinkyu Jeong

Version control. what is version control? setting up Git simple command-line usage Git basics

Introduction to Git and Github Repositories

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

Version Control with Git

Lab 01 How to Survive & Introduction to Git. Web Programming DataLab, CS, NTHU

Git. Charles J. Geyer School of Statistics University of Minnesota. Stat 8054 Lecture Notes

GETTING STARTED WITH. Michael Lessard Senior Solutions Architect June 2017

FEEG Applied Programming 3 - Version Control and Git II

Software Development I

Revision Control and GIT

Git Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : October, More documents are freely available at PythonDSP

What is Git? What is Git? Version Control. Barry Grant

Introduction to Git. Database Systems DataLab, CS, NTHU Spring, 2018

Git Introduction CS 400. February 11, 2018

Git tutorial. Katie Osterried C2SM. October 22, 2015

Introduction to the UNIX command line

L Modeling and Simulating Social Systems with MATLAB

Topics covered. Introduction to Git Git workflows Git key concepts Hands on session Branching models. Git 2

Managing Network Configurations with Git and GitLab

Tutorial: Getting Started with Git. Introduction to version control Benefits of using Git Basic commands Workflow

Lecture 2: Data in Linguistics, Git/GitHub, Jupyter Notebook. LING 1340/2340: Data Science for Linguists Na-Rae Han

A BASIC UNDERSTANDING OF VERSION CONTROL

(Cloud9) and to the Remote Repository (GitHub)

FOSS: Road to a Quality Technical Resume

How to be a 1337 h4ck3r: Git + Linux

How to version control like a pro: a roadmap to your reproducible & collaborative research

Hg Tutorial. For : COP Object oriented Programming (Using C++) Biswas Parajuli

Git. Presenter: Haotao (Eric) Lai Contact:

Version control with Git.

Git: Distributed Version Control

John DeDourek Professor Emeritus Faculty of Computer Science University of New Brunswick GIT

Barry Grant

Version Control: Gitting Started

API RI. Application Programming Interface Reference Implementation. Policies and Procedures Discussion

1. Git. Robert Snapp

Human-Computer Interaction Design

Submitting your Work using GIT

Tizen/Artik IoT Practice Part 4 Open Source Development

1/20/13 Git tutorial. Git tutorial. Mike Nolta. file:///users/nolta/github/reveal.js/git.html?print-paper#/ 1/31

Version control system (VCS)

Human-Computer Interaction Design

2 Initialize a git repository on your machine, add a README file, commit and push

Git for Version Control

Effective Software Development and Version Control

git the SCM system Jan-Simon Möller training.linuxfoundation.org

GIT Princípy tvorby softvéru, FMFI UK Jana Kostičová,

Visualizing Git Workflows. A visual guide to 539 workflows

Lab Exercise Git: A distributed version control system

CS314 Software Engineering Configuration Management

Source Code Management wih git

Introduction to Git and Github

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Gerrit

AMath 483/583 Lecture 2

213/513/613 Linux/Git Bootcamp. Cyrus, Eugene, Minji, Niko

Overview. 1. Install git and create a Github account 2. What is git? 3. How does git work? 4. What is GitHub? 5. Quick example using git and GitHub

DEAD-SIMPLE VERSION CONTROL FOR YOUR TEAM GIT WITH MATTHEW REIDSMA GRAND VALLEY STATE UNIVERSITY

G E T T I N G S TA R T E D W I T H G I T

Intro to Linux & Command Line

GUIDE TO MAKE A REAL CONTRIBUTION TO AN OPEN SOURCE PROJECT 1. 1

AMath 483/583 Lecture 2. Notes: Notes: Homework #1. Class Virtual Machine. Notes: Outline:

git 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:

Version Control. Software Carpentry Github s Hello World Git For Ages 4 And Up You need source code control now

Version Control. Version Control

Θερινό Σχολείο, Ιουλίου git. Αχιλλέας Πιπινέλης. Μονάδα Αριστείας ΕΛ/ΛΑΚ ΤΕΙ Αθήνας

Project Management. Overview

Version Control. Version Control

Tutorial 2 GitHub Tutorial

Version Control with Git

Git. CSCI 5828: Foundations of Software Engineering Lecture 02a 08/27/2015

Basic git. Interactive.

Introduction to Git and GitHub for Writers Workbook February 23, 2019 Peter Gruenbaum

Improving Your Life With Git

Eugene, Niko, Matt, and Oliver

Getting the files for the first time...2. Making Changes, Commiting them and Pull Requests:...5. Update your repository from the upstream master...

git commit --amend git rebase <base> git reflog git checkout -b Create and check out a new branch named <branch>. Drop the -b

Git: Distributed Version Control

How to be a git. Dominic Mitchell

Lab Objective. Lab Assignment. Downloads and Installation

School of Computing Science Gitlab Platform - User Notes

Object Oriented Programming. Week 1 Part 2 Git and egit

Online Remote Repositories

Git! Fundamentals. IT Pro Roundtable! June 17, 2014!! Justin Elliott! ITS / TLT! Classroom and Lab Computing!! Michael Potter!

Agenda. - Final Project Info. - All things Git. - Make sure to come to lab for Python next week

git and the virtue of version control ECE /2/2015

Recap: Developer's Environment

Git AN INTRODUCTION. Introduction to Git as a version control system: concepts, main features and practical aspects.

Windows. Everywhere else

GIT. CS 490MT/5555, Spring 2017, Yongjie Zheng

Version Control System - Git. zswu

Working with GIT. Florido Paganelli Lund University MNXB Florido Paganelli MNXB Working with git 1/47

CS 261 Recitation 1 Compiling C on UNIX

2/8/18. Overview. Project Management. The First Law. What is Project Management? What Are These Changes? Software Configuration Management (SCM)

Gitting things done. Hands-on introduction to git niceties. Jan Urbański Ducksboard

Lab 08. Command Line and Git

Git Basi, workflow e concetti avanzati (pt2)


Git AN INTRODUCTION. Introduction to Git as a version control system: concepts, main features and practical aspects.

Tips on how to set up a GitHub account:

Git for Newbies. ComMouse Dongyue Studio

Transcription:

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 wanting to track edits Review a history log of changes made View differences between versions Retire old versions Anyone needing to share changes with collaborators Anyone not afraid of command line tools

Git is Popular Distributed Version Control Open source and free software Compatible with Unix-like Systems (Linux, Mac OSX, and Solaris) and Windows Faster than other SCMs (100x in some cases)

Distributed version Control No Need to communicate with a central server Faster No network access required No single failure point Encourages participation and forking of projects Developers can work independently Submit change sets for inclusion or rejection

Distributed

Centralized Vs Distributed

No network Needed Performing a diff Viewing file history Commiting Changes Merging branches Obtaining other revision of file Switching branches

Get a Virtual Machine http://bit.ly/scmgalaxy-getvm

Install http://git-scm.com/downloads

Verify > git --version > which git (linux)

git init Git Basic Workflow (working with local git repo) It create a git empty repo. Also creates a.git in the current dir git add <directory tree> Adds all files (except.git) git commit Commits the changes (in this case initial commit) Creates a branch named master HEAD points at master

Git workflow

Create a git repo > git init

Configuring Git git config --global user.name "rajesh kumar" git config --global user.email someon@nowehre.com git config --list

Create some files/code Linux touch filename vi filename cat > filename echo some text >> filename

Add file to git repo > git add <filename>

Commit to git repo > git commit m This is my First commit

Check the list of commit > git log

Check the status of current repo > git status

Working with remote repo (github)

Git Basic Workflow (working with remote git repo) Sign up https://github.com/

Create a new repos in github

Add remote depot to config > git remote add origin git@github.com:scmgalaxy/dsadasdasd.git

Push to Remote repo > git push -u origin master

github to local git workflow Working with Remote Repos git clone Creates a git repo from an existing repo All remote branches are tracked Remote HEAD branch checked out as your initial master branch as well git add <directory tree> Adds all files (except.git) git commit Commits the changes (in this case initial commit) Creates a branch named master HEAD points at master git push

github https://github.com/

Linux Linux Git pwd Current Directory mkdir git-training Create a directory called git-training git init ls Listing the directory ls Listing the directory git --version To know the version of git. which git where the git is installed history Display the list of all run commands git status To know the status of my current git repo sudo apt-get install git To install a git in Ubantu clear Clear the screen cd Change directory. git add. Or git add <filename> ls -la To List files n directory including hidden touch ashok.txt To create a file git commit m This is my message git log vi harikiran.txt To create a file cat > rajesh.txt To create

scmgalaxy Community https://twitter.com/scmgalaxy https://www.facebook.com/scmgalaxy http://bit.ly/scmgalaxy-linkedin

Questions? http://bit.ly/scmgalaxy-forum