1
neo-73
3y

Is there a way to create pull request on git using CLI? I have tried request-pull option but quiet lost over there.

Comments
  • 0
    There are 3rd party tools afaik.
    Since Pull requests are handled differently depending on the cloud provider you're using and Some pull requests are actually emails to the maintainer of the project, there isn't a plan to standartize it soon with git tool.
  • 1
    @HitWRight yeah looks like that!
  • 1
    For gitgub there is a tool (I think it was called hub).
    gitea has extension for various IDEs.
  • 0
    Git pull origin master ?
  • 1
    @johnmelodyme thats a pull. this is what happens when a pull request is approved. A pullnrequest is what happens between the coding and the final pull.
  • 0
    Pull requests aren't version controlled with the code so they're outside the scope of git, just like builds, credentials or tickets.
  • 4
    git push --force origin master
  • 2
    When you use force, I hope someone electrocutes you...

    Pull requests need to be triggered manually.

    REST API could be done via curl / bash script / hook or manually.
  • 0
    @IntrusionCM true that, REST API is the way to go!
Add Comment