jkup / pullit

Display and pull branches from GitHub pull requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I use pullit to push to the fork's branch?

ljharb opened this issue · comments

Like pullit push 123 or pullit push 123 -f, to push directly to the proper remote and branch for that PR?

I happened to write something similar the other night. Might be handy for someone looking to do this.

const addRemote = `git remote add ${branch.head.user.login} https://github.com/${branch.head.user
      .login}/${branch.head.repo.name}.git`

If it's added using https tho, then i can't push to it without entering credentials; I'd want all remotes to use ssh.