Two Computers Connect the Git Repository

Two Computers Connect the Git Repository

Warning: Before Commit Please Fetch and Merge or Pull but for more carefully Use Fetch

1
git fetch origin upgrade  \# origin is repository upgrade is branch
1

1
git log \-p upgrade\.\. origin/upgrade
1
\# compare the difference
1

1
git merge origin/upgrade
1
\# merge to local repository
1
git fetch origin upgrade:temp
1

1
git diff temp
1

1
git merge temp
1

1
git branch \-d temp

Two Computers Connect the Git Repository
https://blog.yaonas.space/2023/12/Two Computers Connect the Git Repository/
作者
Xu Yao
发布于
2023年12月21日
许可协议