增加git fork workflow文章

This commit is contained in:
luke
2013-06-23 23:28:01 +08:00
parent 1e88b8c7bc
commit 494087fd09
@@ -0,0 +1,24 @@
---
layout: post
title: Git fork workflow
categories:
- Programming
tags:
- git
---
1.Fork
2.Add upstream repo
git clone <forked repo url>
cd <repo foder>
git remote add upstream <origin repo url>
3.Fetch upsteam and merge
git checkout master
git fetch upstream
git merge upstream/master
git push origin master