Skip to content

Instantly share code, notes, and snippets.

@tatianaevers
tatianaevers / gitoverview.md
Last active November 5, 2016 22:43
GIT Overview

Quick Overview

Here are the basic steps to start using feature branches in your project.

###Start on master

  # switch to the master branch
  git checkout master
 
@tatianaevers
tatianaevers / gist:f67fbb956bc5cccc93267928c547a64f
Last active November 5, 2016 20:43 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream