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

关于pr的一些问题 #2627

Open
kimoge opened this issue Jul 18, 2024 · 3 comments
Open

关于pr的一些问题 #2627

kimoge opened this issue Jul 18, 2024 · 3 comments

Comments

@kimoge
Copy link
Contributor

kimoge commented Jul 18, 2024

我看大家的pr都是一次pr一个commit,请问怎么做到的。我更新一次pr就多一个commit。

@nineninee
Copy link
Contributor

我是本地新建一个分支, 这个分支做对应的修改, 然后再把这个分支推送到github仓库, 最后把github仓库上对应的新分支提交一个pr.

@HardX8
Copy link
Contributor

HardX8 commented Aug 7, 2024

我看大家的pr都是一次pr一个commit,请问怎么做到的。我更新一次pr就多一个commit。

一个分支下的commit在PR时是一起提交的,要一个PR一个commit就需要建立多个分支

@DengSchoo
Copy link
Contributor

Using git commit --amend to merge current commit to the last one. By the way, you should always use git pull before it.

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

No branches or pull requests

4 participants