简体   繁体   中英

Send pull request to GitHub

I have a repo on GitHub, but I do all my dev on local repos, and push to a local server when ready for server testing, and only push to GitHub when "live"

But what I want todo is, push to local server to test and rather than push to GitHub, I would rather send GitHub a pull request, to pull from my server

Is this actually possible, or so I need to push to a different GitHub branch and then do a pull request between branches, or setup a completely different GitHub repo, and then pull request from that one

I can't be the only one who works like this

Pull Requests are GitHub specific and can only be done within a repo or amongst repos in GitHub. It is not possible to setup a pull request from a local repo to one on GitHub.

Since you are using your repos as gates where you perform some valiadation, I would suggest having another repo on GitHub to which you push to and setup a pull request from that one to your "live" repo.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM