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

Similar documents
Tips on how to set up a GitHub account:

Github/Git Primer. Tyler Hague

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

Using GitHub and SourceTree to work with DITA TC repositories

Visualizing Git Workflows. A visual guide to 539 workflows

1. Which of these Git client commands creates a copy of the repository and a working directory in the client s workspace. (Choose one.

Intro to Github. Jessica Young

Git Workflows. Sylvain Bouveret, Grégory Mounié, Matthieu Moy

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

The Old World. Have you ever had to collaborate on a project by

Version Control with Git ME 461 Fall 2018

Git, the magical version control

Lab 08. Command Line and Git

Using GitHub to Share with SparkFun a

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

Git for Subversion users

Tizen/Artik IoT Practice Part 4 Open Source Development

Windows. Everywhere else

Tutorial 2 GitHub Tutorial

KTH Royal Institute of Technology SEMINAR 2-29 March Simone Stefani -

b. Developing multiple versions of a software project in parallel

Revision Control. How can 4. Slides #4 CMPT 276 Dr. B. Fraser. Local Topology Simplified. Git Basics. Revision Control:

Beyond git add/commit/push

FPLLL. Contributing. Martin R. Albrecht 2017/07/06

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

CS314 Software Engineering Configuration Management

Django MFA Documentation

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

Version Control: Gitting Started

Online Remote Repositories

projecto Documentation

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

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:

MOOSE-Based Application Development on GitLab

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

The Rock branching strategy is based on the Git Branching Model documented by Vincent Driessen.

Version control CSE 403

IC Documentation. Release 0.1. IC team

Lab Objective. Lab Assignment. Downloads and Installation

Software Development I

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

Lecture 3: Processing Language Data, Git/GitHub. LING 1340/2340: Data Science for Linguists Na-Rae Han

Version Control System GIT

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

Version Control. Version Control

Version control CSE 403

Object Oriented Programming. Week 1 Part 2 Git and egit

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

How to git with proper etiquette

Lecture 6 Remotes. Sign in on the attendance sheet!

Git Tutorial. André Sailer. ILD Technical Meeting April 24, 2017 CERN-EP-LCD. ILD Technical Meeting, Apr 24, 2017 A. Sailer: Git Tutorial 1/36

CS 390 Software Engineering Lecture 5 More Git

Git. Presenter: Haotao (Eric) Lai Contact:

Git tutorial. Katie Osterried C2SM. October 22, 2015

Lecture 6: more pandas (and git/github) LING 1340/2340: Data Science for Linguists Na-Rae Han

Version Control. Version Control

(Cloud9) and to the Remote Repository (GitHub)

A short tutorial on Git. Servesh Muralidharan 4 March 2014

Using Git and GitLab: Your first steps. Maurício

Midterm Next Week. Last year s midterm (which didn t include remotes):

Effective Software Development and Version Control

Code and data management with Git

Version control system (VCS)

Review Version Control Concepts

Using GitHub for scientific research

Index. Alias syntax, 31 Author and commit attributes, 334

A L A TEX-oriented intro to Git

Use git rm to remove files from workspace

Introduction to Git and Github

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

GETTING TO KNOW GIT: PART II JUSTIN ELLIOTT PENN STATE UNIVERSITY

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


Creating a Patch. Created by Carl Heymann on 2010 Sep 14 1

Basics of Git GitHub

Software Revision Control for MASS. Git Installation / Configuration / Use

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

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

699DR git/github Tutorial

Code Repository. P Blanchfield

Continuous Integration with Selenium and Jenkins

Table of Contents. Concepts

django simple pagination Documentation

A BASIC UNDERSTANDING OF VERSION CONTROL

Working in Teams CS 520 Theory and Practice of Software Engineering Fall 2018

CS 320 Introduction to Software Engineering Spring February 06, 2017

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

What is version control? (discuss) Who has used version control? Favorite VCS? Uses of version control (read)

CPSC 491. Lecture 19 & 20: Source Code Version Control. VCS = Version Control Software SCM = Source Code Management

Git & Github Fundamental by Rajesh Kumar.

Version control CSE 403

Introduction to Git and Github Repositories

L Modeling and Simulating Social Systems with MATLAB

Version control with Git.

a handful of Git workflows for the agilist steven harman twitter: stevenharman

Make sure to mark it private. Make sure to make it a Mercurial one and not a Git one.

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

Getting started with GitHub

Configuration Management

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

Transcription:

Table of Contents Getting the files for the first time...2 Making Changes, Commiting them and Pull Requests:...5 Update your repository from the upstream master...8 Making a new branch (for leads, do this each and every day before working)...10 Set the latest branch as the master (for leads, do this at the end of every day)...11 Accepting a Pull Request (for leads)...12 Things to figure out still...13

Getting the files for the first time Download github for windows http://windows.github.com/ Create an account and login Select tools->options and fill in your name and email address

Go to this repository on github.com https://github.com/pickle27/2809_test Click on the fork button and create a fork of the repository for yourself. These files will now be accessible from your github account.

Back in github for windows Under your github repositories click clone on the new repository you added, this will copy the files to your computer (you might need to click refresh for the repository to show up).

Making Changes, Commiting them and Pull Requests: Open the folder where the repo was cloned to and edit one of the cad files. Back in github for windows go to your repository and look at the uncommited changes. Enter a commit message that described which part you changed and what you did then click commit. Repository window, on the left is a list of what files have changes, if they are text it will show the difference otherwise it will simply list the file as changes. On the right in yellow is your commit message. All commit messages should clearly describe what the changes are so we can quickly and easily understand them. If your commit messages are poor your work will not be merged into the master working copy so make good commit messages Then press sync to sync your changes to github.

Now go to your github repository online and select pull request, this means you want the upstream owner to pull your changes into the main repo.

This is the pull request window. The top left drop downs display the branch and repository you are requesting to pull your changes into. On the right is your repository name and the branch you are requesting to have pulled. Below these drop downs is a summary of your request. You should name your request as well as providing a detailed description of all the changes. If you are on the CAD team you should add some screenshots of what you have changed to support your description. Take a second to review your commits are all of the commit messages clear? Also review the list of files that are changed if you do not have a description for what you changed in a file your request will be rejected.

Update your repository from the upstream master In github for windows Select tools -> open shell here and type these command one after another Type: git remote add upstream https://github.com/pickle27/2809_test (or the url of the repo) this only needs to be done the first time. Type: git fetch upstream (gets the new files but does not change any of your files) Type: git status and look at the output, it will print the current branch you are working on. The next step will override files in your local directory if you don t want this then create a new branch and make it active. If you don t care about the changes type git stash Type: git merge upstream/master your master branch is now the same as the upstream master branch Type: git push origin master Notes you can merge any 2 branches but for build season you should only need to merge the master with one of your own branches.

Result (yours may look a bit different but this gives you an idea of what print outs to expect) :

Making a new branch (for leads, do this each and every day before working) In github for windows select branch from the top and create a new branch (name it the date in this format DD_MM_YYYY). You are now using a new branch and new changes will only be present here Remember to make commits appropriately as you work

Set the latest branch as the master (for leads, do this at the end of every day) In github for windows commit all your changes to your current working branch Then from the branches menu select manage Drag the current branch into the first slot and master into the second and result slot then click merge Sync your changes to github

Accepting a Pull Request (for leads) When someone makes a pull request they are asking you to merge their changes into your repository. The pull request process is all done online via github. When someone makes a pull request to you you will recieve an email from github. When you get a pull request you need to review it before merging the changes. You should review: a) Look at all the files that have been changed, there should be a commit message detailing each change, if there is not reject the request b) Look at all the commit messages are they of good quality? If not reject the request c) Read the pull request description, is it of good quality? For CAD does it incude screen shots? If not reject the request. When you reject a request respond via github in the reply area about why the request was recjected. Then the person who made the request knows why and can fix their work before making another request. Screen shots to come.

Things to figure out still What is different when the repo is private can people request access on their own and we approve or do we have to invite?