Basics of Git GitHub

Similar documents
Git Introduction CS 400. February 11, 2018

AIS Grid School 2015

GETTING STARTED WITH. Michael Lessard Senior Solutions Architect June 2017

Version Control: Gitting Started

About SJTUG. SJTU *nix User Group SJTU Joyful Techie User Group

Git - A brief overview

Chapter 5. Version Control: Git

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

Git. Ľubomír Prda. IT4Innovations.

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

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

Tizen/Artik IoT Practice Part 4 Open Source Development

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

Git for Subversion users

What is git? Distributed Version Control System (VCS); Created by Linus Torvalds, to help with Linux development;

Lesson 7: Recipe Display Application Setup Workspace

Introduction to Git and Github Repositories

Version Control with GIT

Visualizing Git Workflows. A visual guide to 539 workflows

Distributed Version Control (with Git)

Git. A Distributed Version Control System. Carlos García Campos

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

Algorithm Engineering

Submitting your Work using GIT

Git & Github Fundamental by Rajesh Kumar.

Barry Grant

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

Using GitHub to Share with SparkFun a

Version Control System - Git. zswu

FAQ Q: Where/in which branch do I create new code/modify existing code? A: Q: How do I commit new changes? A:

Tips on how to set up a GitHub account:

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

Public-Service Announcement

Windows. Everywhere else

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

VCS VERSION CONTROL SYSTEMS

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

Git and GitHub. Dan Wysocki. February 12, Dan Wysocki Git and GitHub February 12, / 48

From Commits to Collaboration: A Git Tutorial for Social Scientists

I m an egotistical bastard, and I name all my projects after myself. First Linux, now git. Linus Torvalds, creator of Linux and Git

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

Getting the Source Code

A Practical Introduction to Version Control Systems

Object Oriented Programming. Week 1 Part 2 Git and egit

GIT VERSION CONTROL TUTORIAL. William Wu 2014 October 7

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

Public-Service Announcement

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

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

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

Version control with Git.

Git. (Why not CVS?... because Git.) Karel Zak Florian Festi Bart Trojanowski December 20, 2007

USING GIT FOR AUTOMATION AND COLLABORATION JUSTIN ELLIOTT - MATT HANSEN PENN STATE UNIVERSITY

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

Source Code Management wih git

A Brief Introduction to Git. Sylverie Herbert (based on slides by Hautahi Kingi)

Use git rm to remove files from workspace

Git Tutorial. Version: 0.2. Anders Nilsson April 1, 2014

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:

Git. Presenter: Haotao (Eric) Lai Contact:

Best Practices. Joaquim Rocha IT-DSS-TD

Git, the magical version control

Version Control with Git ME 461 Fall 2018

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

Configuring Git. Matthieu Moy. configuring-git-slides.

Revision Control and GIT

Version Control Systems

Software Project (Lecture 4): Git & Github

CS314 Software Engineering Configuration Management

Effective Software Development and Version Control

MOOSE-Based Application Development on GitLab

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

Introduction to Git and Github

Version control. with git and GitHub. Karl Broman. Biostatistics & Medical Informatics, UW Madison

CS Homework 8. Deadline. Purpose. Problem 1. Problem 2. CS Homework 8 p. 1

INET

A BASIC UNDERSTANDING OF VERSION CONTROL

Version Control. Collaborating with git. Tim Frasier

License. Introduction to Version Control with Git. Local Version Control Systems. Why Use Version Control?

Git tutorial. Katie Osterried C2SM. October 22, 2015

Git Resolve Conflict Using Mine Command Line

Eugene, Niko, Matt, and Oliver

Agenda. Several projects are using GIT Developer(s) Junio Hamano, Linus Torvalds. Qt Stable release (January 31, 2011)

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

Introduction to GIT. Jordi Blasco 14 Oct 2011

CSE 391 Lecture 9. Version control with Git

Git: Distributed Version Control

Versioning with git. Moritz August Git/Bash/Python-Course for MPE. Moritz August Versioning with Git

Git for Newbies. ComMouse Dongyue Studio

Git for Version Control

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

Introduction to Scientific Computing

Git(Lab) Tutorial and Hands-On

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

Code and data management with Git. Department of Human Genetics Center for Human and Clinical Genetics

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

Version Control. Second level Third level Fourth level Fifth level. - Software Development Project. January 17, 2018

(Cloud9) and to the Remote Repository (GitHub)

So#ware(Project. Lecture'4. Wouter'Swierstra. So#ware(project( (Lecture(4 1

Version control with git and Rstudio. Remko Duursma

Transcription:

Basics of Hub

Why this Webinar? You registered for Microsoft codefundo++ Deadline to submit your idea is Oct 12th, 23:59 IST Getting you started with & Hub

Agenda What is Version Control? What is the difference between & Hub? How to get running on your system How to get started with How to get started with Hub

Origin Who created? Linus Torvalds When? 2005 Why? For development of the Linux kernel, with other kernel developers contributing to its initial development. What does stand for? in British English slang stands for a stupid or unpleasant person. Torvalds said: I'm an egotistical bastard, and I name all my projects after myself. First 'Linux', now git. The man page describes git as "the stupid content tracker".

The Three Stages

Your identity git config --global user.name Vivek Shangari If you want to override this with a different name or email address for specific projects, you can run the command with the --global option when you re in that project.

Your identity Without --global when you are not in a Local Repository

Your identity Check Your Settings

Your identity Adding Custom Variables

Your identity Adding Custom Variables > When to use Quotes

Getting Help git help config git config --help man git-config

Repository Local Remote/Central

Hub Create an Account on Hub.com

Hub Start a project

Hub Create a new repository

Hub Add.gitignore

Hub README.md

Hub Add codefundopp as collaborator

Create folder for local repository

Go to local folder

Local Repository git init

Sync Local & Remote Repository Local Remote

Sync Local & Remote Repository git remote add origin

Hub How to find link

Sync Local & Remote Repository git remote add origin https://github.com/acehacker-github-demo/webinar.git

Pull files from Central Repository to Local Repository git pull origin master

Check your local repository On your machine

How to make changes Add changes to Staging Area (or Index) first.

How to add to the Staging Area/Index git add Which files are there in the Index and which are not git status

When there is nothing in the Staging Area to commit. git status

Create some files in your local repository

The file you just created is in your workspace. It is not in the Staging Area/Index yet because you.

See for yourself git status

Add this file to the Staging Area git add

Check the Status again git status

Now you can commit to local repository git commit -m <message>

How to commit multiples at once Add some more files to your local folder

How to commit multiples at once See Status with git status

What happens if you modify existing file?

Check with git status

Add all these files to Staging Area all at one git add -A

Check the Status again git status

How to commit all at once git commit -a -m <message>

How does logs all these changes? git log

Non-Linear Development with Branching

Non-Linear Development Branching Two types of Branching: Local Branches Remote Tracking Branches

How to create branches git branch <branch name>

Switch branches git checkout <branch name>

Create some new files - may be text files this time

How does your Status looks now? git status

Add this file to the Staging Area git add

You now need to commit this file git commit -m <message>

Remember that you are making changes in a branch. See all files in the branch with ls

Now move back to the master branch. git checkout master See all files in master with ls

Merging git merge <branch name>

Merging List out the files in master with ls to see file in branch show up here

Remember that whatever you do in your branch will not reflect in master until you merge it. Try making some changes in the branch now. Go back to the branch using git checkout <branch name>

Go to your folder and make changes to the file in branch.

Check Status with git status

Because this is already a tracked file, you can commit directly without explicitly running the git add command. git commit at this stage will do it for you.

Check Status with git status

Also check content of the file you just committed using cat

Remember that you have not merged this file after making changes. Switch back to master using git checkout master and see the difference in the files using cat.

Linear sequence of commits - Rebasing

Rebasing Switch to the branch. Go to your folder and create some new files. These files will be untracked, so you will need to use git add -A Then commit using git commit -a -m <message>

Rebasing See the files in the branch using ls. Switch to the master and see the files there using ls.

Rebasing Rebase from the master using git rebase <branch name>

Attend the next Webinar on Oct 14, 2018 at 15:00 IST More details here: https://codefundo.io