Get to Know GitHub

Get to Know GitHub

@bkeepers

Get to Know GitHub

Slides

bit.ly/g2k-github

Resources

training.github.com/web/free-classes/

youtube.com/user/github

git-scm.com

Introduction

Introduction

Git

Network

Network

Remotes

Network

Adding A Remote

git remote add <name> <url>

Network

Remotes Are Immutable

Remote-tracking branches are locally immutable

Network

Listing Remote Branches

#List remote branches
git branch -r

#List all branches
git branch -a

Network

Sharing With A Push

git push <remote> <branch>

Network

Pull Vs Fetch

git pull <remote> <branch>

git fetch <remote> <branch>

GitHub

GitHub

Github Hosted Repo

  • Create a GitHub repository
  • Configure access & options

GitHub

Cloning From Github

Obtain a local "copy":

# SSH
git clone git@github.com:<username>/<repository>.git

# HTTPS
https://github.com/<username>/<repository>.git

Forking

Forking

Purpose Of Forking

  • Entire history of original repository
  • Facilitates easy contribution
  • Encourages individual exploration

Pull Requests

Pull Requests

Promoting Collaboration

  • Merging with traceability
  • Peer-review via GitHub & Git

Pull Requests

Forks And Pull Requests

GitHub Repo Creation

GitHub Repo Creation

Create a Repo

Creating a repo on GitHub is as easy as clicking the New Repo button.

Questions?

training@github.com

training.github.com


Office Hours

training.github.com/web/free-classes/


Training Team Q&A

github.com/githubtraining/feedback