![]() |
1
xhatt510 2024-07-29 17:47:37 +08:00
蹲办法。同问
|
![]() |
2
lisxour 2024-07-29 17:50:06 +08:00
我一般给 git 再加一个 remote ,fetch 下来后,自己 merge 一下(可以将远程分支 merge 进来,就是一个名字的区别而已)
|
![]() |
3
enchilada2020 2024-07-29 17:50:19 +08:00 via Android
GitHub Actions 每天自动合并
|
![]() |
4
jasonkayzk 2024-07-29 17:59:01 +08:00
跑个 GitHub Actions 合并就行。
|
![]() |
5
coldle 2024-07-29 18:20:10 +08:00 via Android
就用楼上说的 github action ,之前部署 lobechat 的时候有见这么用过
|
![]() |
6
nagisaushio 2024-07-29 18:21:29 +08:00 via Android
本地加一个 remote ,手动 fetch ,rebase ,都不用一分钟
|
![]() |
7
wjfz 2024-07-29 18:21:48 +08:00 ![]() |
![]() |
8
qichunren 2024-07-29 19:01:04 +08:00
github 的网页上有一个按钮,点一下就同步代码了。
|
9
1rv013c6aiWPGt24 2024-07-29 19:08:03 +08:00 via Android
我记得有一个 pull 插件,选择仓库就行,之前一直用这个,源仓库更新之后就会自动拉取,插件就叫 pull
|
![]() |
10
cnbattle 2024-07-29 19:32:38 +08:00 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 2024-07-29 19:46:56 +08:00
|
![]() |
12
SunsetShimmer 2024-07-29 20:00:03 +08:00 via Android
|
![]() |
13
Jakarta 2024-07-29 20:49:53 +08:00
|
![]() |
14
jqtmviyu 2024-07-29 21:28:15 +08:00 ![]() 抄下这个 action, 反正我直接用没问题.
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/.github/workflows/sync.yml |
![]() |
15
unco020511 2024-07-30 12:03:04 +08:00
@jqtmviyu 对,我也是参考这个
|
![]() |
16
guanzhangzhang 2024-07-30 15:24:22 +08:00
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 |