分两种情况:
- 代码仓库管理者给你添加该仓库的写入权限,这样的话可以直接push
- 如果不能直接push(大多数情况),采用经典的fork & pull request来提交代码,下面讲述这种情况
例如有个仓库https://github.com/ecomfe/esui.git
,其采用了经典的分支开发模型,稳定后的代码提交到master分支,其余特性则在dev分支上进行开发,待成熟后合并回master分支。
import os | |
import json | |
import random | |
path = "/Users/glow/Desktop/aa/douyin/json" # json 文件位置 | |
files = os.listdir(path) | |
jueyou = {} # 存储抖音所有掘友的 ID 和留言内容 为词典 | |
nameList = [] # 存储掘友 ID |
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |