mirror of
https://gh-proxy.org/https://github.com/klinsmaya/dashjim.github.com.git
synced 2026-11-08 17:36:53 +08:00
增加git fork workflow文章
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user