简体   繁体   中英

How can I delete a pending pull request?

I have created a pull request. Later I realized I need to overwrite that pull request with an updated commit. But Github does not allow me to do another pull request because of the first pending one. Can I delete the previous pull request?

If you update the branch that the pull request is based off of, GitHub will automatically update the pull request to match the branch. You don't have to recreate it. Just push a new version of the branch.

If you rewrote history (eg commit --amend or rebase ), you'll need to use the --force flag when pushing the replacement commit(s).

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