Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

练习二 #26

Open
Dopoil opened this issue Oct 7, 2024 · 1 comment
Open

练习二 #26

Dopoil opened this issue Oct 7, 2024 · 1 comment
Assignees
Labels

Comments

@Dopoil
Copy link

Dopoil commented Oct 7, 2024

No description provided.

Copy link

github-actions bot commented Oct 7, 2024

任务

随机变更 md 里的内容

唯一的要求是:在 PR 里不要出现上次提交的 git 记录。

方法

法一

如果你的仓库单纯比上游仓库较慢(只有 behind),那么可以在仓库内点击同步,同步为最新后再开始编码。

image

法二

如果又有 behind 又有 ahead 那么可以删除仓库,重新 Fork 。

法三

创建单独的分支,利用单独分支执行相关指令拉取最新请求。

(每次都创建一个新的分支,在那个分支上编码,完成之后就删除新创建的这个分支,保持主分支的干净,那么对于主分支来说就可以使用法一了)

git checkout -b new-branch-name 
git pull upstream master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant