日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

CPython入门----Fork源码到自己github并下载配置本地git

發布時間:2024/3/24 python 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 CPython入门----Fork源码到自己github并下载配置本地git 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

更多信息請關注 個人網站

一、基礎準備工作

(1)首先在github注冊一個自己的賬號
(2)在windows上安裝git,可參考 Git安裝----Windows10系統

二、Fork源碼

(1)打開CPython的官方github地址,然后點擊【fork】按鈕

(2)此時即將源碼fork到自己的github代碼倉下了

三、下載到本地及git配置

(1)首先確保已經在github配置公鑰,如未配置,請參考 github基礎----配置公鑰
(2)本地放代碼的文件夾中右鍵-【git bash here】,打開git bash窗口

(3)在自己的代碼倉中拷貝ssh類型的下載鏈接

(4)在(2)中打開的窗口中執行 git clone 操作,如:

Administrator@redrose2100-NJ MINGW64 /g/src $ git clone git@github.com:redrose2100/cpython.git Cloning into 'cpython'... remote: Enumerating objects: 866263, done. remote: Total 866263 (delta 0), reused 0 (delta 0), pack-reused 866263 Receiving objects: 100% (866263/866263), 419.90 MiB | 2.78 MiB/s, done. Resolving deltas: 100% (687315/687315), done. Updating files: 100% (4556/4556), done.Administrator@redrose2100-NJ MINGW64 /g/src

(5)查看當前本地倉庫與遠端倉庫的關聯關系

Administrator@redrose2100-NJ MINGW64 /g/src $ cd cpython/Administrator@redrose2100-NJ MINGW64 /g/src/cpython (main) $ git remote -v origin git@github.com:redrose2100/cpython.git (fetch) origin git@github.com:redrose2100/cpython.git (push)Administrator@redrose2100-NJ MINGW64 /g/src/cpython (main)

(6)設置upstream關聯關系,如下:

Administrator@redrose2100-NJ MINGW64 /g/src/cpython (main) $ git remote add upstream git@github.com:python/cpython.gitAdministrator@redrose2100-NJ MINGW64 /g/src/cpython (main) $ git remote -v origin git@github.com:redrose2100/cpython.git (fetch) origin git@github.com:redrose2100/cpython.git (push) upstream git@github.com:python/cpython.git (fetch) upstream git@github.com:python/cpython.git (push)Administrator@redrose2100-NJ MINGW64 /g/src/cpython (main)

CPython入門----Fork源碼到自己github并下載配置本地git

CPython入門----下載安裝Visual Studio 2017

總結

以上是生活随笔為你收集整理的CPython入门----Fork源码到自己github并下载配置本地git的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。