1. 程式人生 > >How to create a new Pull Request (PR) in Github

How to create a new Pull Request (PR) in Github

第一個 Pull Request  : - )

Github Create New Pull Request

一、原理圖

                  1.按順序走下來便是第一次  New 一個 PR 要走的流程:

                  2.Main Project   /   Your forked repository 分別是  源專案倉庫   /   你fork到自己帳號的倉庫

在本次演示中分別是subaochen/java-tutorial  /  timo1160139211/java-tutorial

                  3.之後再每次提交無需建立連線,即僅進行 4-5-6-7-8 即可

4.下面將會詳細介紹每一步用途用法注意事項

                        

二、詳細流程介紹

                  Step1:

                   1.Fork:將源專案Fork到你的倉庫,用來為源專案做貢獻 或者自己沿用

     

                     

                  Step2 (1/2):

                  2.1Button >>  'clone / download ': copy URL / download .zip

                     > 注意

:要在自己fork的倉庫中進行

                  Step2 (2/2):

                  2.2# git clone URL.git        // 克隆到本地計算機上,開發

                     > 注意:1.路徑      2. URL
  

                  Step3 (1/3):                 

                  3.1# git remote -v        // 顯示當前倉庫的上游分支


                    

                 Step

3 (2/3):

                  3.2# git remote add upstream URL.git       //  新增上游分支 ,命名為upstream

                     > 注意:1.URL 指向源專案       2.upstream 無須是源專案的一個分支名稱,可任意自行命名

                 Step3 (3/3):

                  3.3# git remote -v        // 顯示當前倉庫的上游分支

                   

                 Step4 :

                  4.# git fetch upstream       // 將upstream 上游分支(源專案)    抓取到本地


                    

                 Step5 :

                  5.# git merge upstream/master       // 將upstream 上游分支(源專案)  的master開發分支  合併到本地,保證本地跟源專案同步

                     > 注意:1.解決合併衝突


                      

                 Step6 :新增一個txt檔案 PRtest.txt

                  Step7(4/4) :

                  7.1# git status                                         //   審查當前的git 狀態                          >注意:1.這樣做是個好習慣,當然不是必須

                  7.2# git add PRtest.txt                          //   也可以  git add .        新增全部

                  7.3# git commit -m "PR test"              //   提交 到 本地

                  7.4# git push origin/master                  //   將本地上傳到 自己的倉庫  的origin/master開發分支  

                     >注意:1.必須只能提交到自己倉庫


                    

                    

                 Step8 (1/3):

                  8.1Button >>  'New pull requests ':

                     > 注意:要在源專案進行


                  8.2Link >>  ' 通過比較兩個倉庫 建立PR ':


                  8.3Button >>  'Create pull requests ':

                     > 注意:要在源專案進行

                     > 注意源專案 base- - - 自己的專案 head

      Finish.

Github 也會幫你記錄你的第一個pull request  ლ(╹◡╹ლ)



相關推薦

How to create a new Pull Request (PR) in Github

第一個 Pull Request  : - ) Github Create New Pull Request 一、原理圖                   1.按順序走下來便是第一次  New 一

How to create a new business with AI?

Artificial intelligence is about to sweep massively in companies because it is a major element of digital transformation. Automation of low value-added tas

【轉】How to create a new user and grant permissions in MySQL

MySQL is one of the most popular database management systems. In this tutorial we will cover the steps needed to create new MySQL user and grant permission

jquery ----> How to Create a Basic Plugin (翻譯)

app sed 設置 函數表 col 有變 動作 jquery對象 別名 http://learn.jquery.com/plugins/basic-plugin-creation/ 如何創建一個基本的插件 有時候你想在整個代碼中提供一些功能。 例如,也許你想要一個單一的方

How to Create a Perl Based Custom Monitor on NetScaler

serve 5.1 citrix prompt rst sym pri index web How to Create a Perl Based Custom Monitor on NetScaler https://support.citrix.com/article/C

GitHub Desktop 出現“please upgrade your plan to create a new private repository”的解決辦法

ron net please vat tor blog 解決 pos sdn 轉:https://blog.csdn.net/qq_38584262/article/details/82386805 解決辦法:去掉最下面的勾 GitHub

How To Order A New Tile Adhesive Manufacturing Plant

When placing tile within a bathroom or kitchen, you have got to use some form of adhesive. Among the more popular varieties of adhesive is mortar.

HOW TO CREATE A UEFI WINDOWS 7 USB BOOT DISK

Extract the files from DVD or ISO file Partition your USB Drive (optional) a. Open Command Window (CMD) as administrator b. diskpart c. list disk d. sele

如何從點雲建立距離影象(How to create a range image from a point cloud)

本教程演示如何從點雲和給定感測器位置建立距離影象。該程式碼建立了漂浮在觀察者前方的矩形示例點雲。 #程式碼 首先,在你最喜歡的編輯器中建立一個叫做range_image_creation.cpp的檔案,並在其中放置下面的程式碼: #include <pcl

How to Create a Simple Neural Network in Python

Neural networks (NN), also called artificial neural networks (ANN) are a subset of learning algorithms within the machine learning field that are loosely b

DL4J: How to create a neural network that draws images

Neural networks, machine learning, artificial intelligence – I get the impression that these slogans attack us from everywhere. They are mainly associated

How To Create A Successful Artificial Intelligence Strategy

Where to start?What are you exactly looking for? Do you want to better internal processes like Accounts? Are you looking to improve customer experience? Ar

How to create a browser extension that leverages IBM Watson cognitive API

You want to use IBM Watson API cognitive solutions, but theyb re too often integrated with products that you donb t need. Browser ext

How to Create a Cordova Plugin from Scratch

How to Create a Cordova Plugin from Scratchcordova iconIf you heading here, that means you were searching for something or somehow we create custom Cordova

How to create a sequential model in Keras for R

How to create a sequential model in Keras for Rtl;dr: This tutorial will introduce the Deep Learning classification task with Keras. We will particularly f

How to Create a Linux Virtual Machine For Machine Learning Development With Python 3

Tweet Share Share Google Plus Linux is an excellent environment for machine learning development

How to Create a MySQL Database

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

How to create a Network File SystemHow to create a Network File System

b. With Amazon EC2, you can specify the software and specifications of the instance you want to use. In this screen, you are shown optio

Steps to create a new standby from an existing ADG standby (文件 ID 2305009.1)

Some customer want to know if we can create a new standby from an existing ADG standby, because we can reduce the overhead workload on pri

(轉載)How to create a mobile WordPress theme with jQuery Mobile

Last month, jQuery Mobile was released. This tool allows you to easily create mobile websites and web apps. In this tutorial, I’ll show