type
status
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
Leetcode记录「2」
2024-12-27
Flutter 基础 记录
2024-12-25
Flutter tutorial 记录
2024-12-25
Privicy policy for GitHub To Text (Chrome Extension)
2024-12-22
一些 Kubernetes 笔记
2024-12-21
一些 docker 笔记
2024-12-20
Announcement
 
 
 
 
暂时没有新的内容