KWriter
KWriter

Reputation: 1184

Can a PR or commit be hidden on public GitHub repo?

Is there a way to hide a specific PR from a public GitHub repo until it is ready for review? I push code to the public repo at least at end of every day. There is a lot of work in progress in my code. Is there a way to hide commits and PR from the public repo? Or should I change my workflow and not commit the code until I'm satisfied with it.

Upvotes: 2

Views: 2280

Answers (1)

Ante Javor
Ante Javor

Reputation: 371

If you push your commits or open a Pull Request on the public repository, there is no way to hide the changes. You will have to change your workflow.

Keep in mind that you are pushing the entire commit history, and it is publicly available. If you accidentally commit an API key, you must manually delete the commit from history. But that action is complex. Take a look at this question.

Upvotes: 1

Related Questions