Skip to content

Instantly share code, notes, and snippets.


Rati Wannapanop ratiw

  • Nonthaburi, Thailand
View GitHub Profile
CristinaSolana / gist:1885435
Created Feb 22, 2012
Keeping a fork up to date
View gist:1885435

1. Clone your fork:

git clone

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

cd into/cloned/fork-repo
git remote add upstream git://
git fetch upstream
fajrif / gist:1265203
Created Oct 5, 2011
git clone specific tag
View gist:1265203
git clone <repo-address>
git tag -l
git checkout <tag-name>
git branch -D master
git checkout -b master