如何提出拉请求?

发布于 2025-02-07 12:18:04 字数 277 浏览 0 评论 0原文

我是git和nodejs的新手。我的问题是我建立一个项目,然后将其上传到主分支的GitHub。但是成员要求提出拉请。如果可能的话,请告诉我全部命令的完整程序,请告诉我完整的程序。 我上传了这样的git

Git init
Git add . 
Git commit -m"initial commit"
Git git add origin main githublink(ssh)
Git push -u origin main

我的项目成功上传后, 现在如何提出拉动请求

I am new in git and in nodejs. My question is I build a project and uploaded it on github in main branch. But members are asking to to give pull request. How can I make a pull request please tell me full procedure with commands if possible thankyou.
I uploaded on git like this

Git init
Git add . 
Git commit -m"initial commit"
Git git add origin main githublink(ssh)
Git push -u origin main

After this my project is uploaded successfully
Now how can I make a pull request

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

朕就是辣么酷 2025-02-14 12:18:04
  • 首先,您需要通过Git Checkout从主分支结帐,
  • 然后您在该分支中开发和编码
  • 下一步提交并在Github repo上推开该分支,
    git commit -m"initial commit"
    git add origin <your_branch> githublink(ssh)
    git push -u origin <your_branch>
  • 最终您访问了GitHub页面和新分支。在主分支中创建拉动请求。然后向您的同事分享该公关。

例如,最后一步:

  • first you need to checkout from the main branch by git checkout
  • then you develop and code in that branch
  • next you commit and push that branch on github repo
    git commit -m"initial commit"
    git add origin <your_branch> githublink(ssh)
    git push -u origin <your_branch>
  • finally you access the github page and your new branch. create a pull request into the main branch. then share that pr to your colleagues.

for example the last step:
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文