Push to a different repository

I would like to push some commits to a different repo within the same org but the GH token doesn’t seem to be valid for other repos. What’s the best way to push code to other repos?

1 Like


I have same request do you have any solution about it ?

Awaiting your feedback about this case.



1 Like

You need to create a personal access token.

Thank you for the response. The PAT will have the same permissions as me, though, right? I’m a bit scared to give everyone in the repo access to all repos I have access to. Is there a way to scope the token? 

I haven’t found a way to scope the token, unfortunately – one workaround is to create a bot account and only add it to a couple of repos, and then make the token with that account.


can you please share the solution u have implemented. i have to implement the same solution.