![]() |
1
xhatt510 192 天前
蹲办法。同问
|
![]() |
2
lisxour 192 天前
我一般给 git 再加一个 remote ,fetch 下来后,自己 merge 一下(可以将远程分支 merge 进来,就是一个名字的区别而已)
|
![]() |
3
enchilada2020 192 天前 via Android
GitHub Actions 每天自动合并
|
![]() |
4
jasonkayzk 192 天前
跑个 GitHub Actions 合并就行。
|
![]() |
5
coldle 192 天前 via Android
就用楼上说的 github action ,之前部署 lobechat 的时候有见这么用过
|
![]() |
6
nagisaushio 192 天前 via Android
本地加一个 remote ,手动 fetch ,rebase ,都不用一分钟
|
![]() |
7
wjfz 192 天前 ![]() |
![]() |
8
qichunren 192 天前
github 的网页上有一个按钮,点一下就同步代码了。
|
9
1rv013c6aiWPGt24 192 天前 via Android
我记得有一个 pull 插件,选择仓库就行,之前一直用这个,源仓库更新之后就会自动拉取,插件就叫 pull
|
![]() |
10
cnbattle 192 天前 via Android ![]() # 添加原始仓库为 upstream
git remote add upstream [email protected]:xxx/xxx.git # 获取 upstream 的更新 git fetch upstream main # 切换到 main 分支 git checkout main # 合并 upstream/main 的更新 git merge upstream/main # 解决冲突(如果有) # 推送到自己的远程仓库 git push origin main |
11
feixianghao 192 天前
|
![]() |
12
SunsetShimmer 192 天前 via Android
|
![]() |
13
Jakarta 192 天前
|
![]() |
14
jqtmviyu 192 天前 ![]() 抄下这个 action, 反正我直接用没问题.
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/.github/workflows/sync.yml |
![]() |
15
unco020511 192 天前
@jqtmviyu 对,我也是参考这个
|
![]() |
16
guanzhangzhang 192 天前
6 楼正解,什么 fork 和 action 的别搞,github 的活跃度都乱了,还浪费地球资源
git remote add upstream https://github.com/xxx/xxx git checkout main git checkout -b fix-xxx git fetch upstream main git rebase upstram/main |