status
type
date
slug
summary
tags
category
icon
password

Origin Vs Upstream

 
1. Maintain Your Fork:
• Origin lets you manage your own copy, push your changes, and manage branches.
2. Stay Updated with the Original Repository:
• Upstream lets you incorporate updates from the original project, ensuring your fork remains up-to-date and reducing merge conflicts.
 
notion image
notion image
 
添加方式:
 
Upstream 操作:
将原仓库最新 与本地同branch merge
 
 

Divergence between Local and Remote

 
hint: You have divergent branches and need to specify how to reconcile them. fatal: Need to specify how to reconcile divergent branches.
 
notion image
 
  1. Merge
 
  1. Rebase
 
 

如果从头开始就是 本地和Remote就是分别初始化的 就会有下面报错

fatal: refusing to merge unrelated histories
 
notion image
 
notion image
 
之后就是merge
notion image
 
然后会自动commit
一些 docker 笔记近期分享
Loading...
ran2323
ran2323
把我吹到那末日夹缝
Latest posts
mcp 记录(1)
2025-4-20
SFT + DPO 塔罗解读
2025-4-14
Backtracking
2025-4-14
Leetcode 0001-1000 分组
2025-4-14
DPO 相关
2025-3-29
今日paper(3/25) - MAGPIE
2025-3-27
Announcement
 
 
 
 
暂时没有新的内容