Skip to content


Push to private git repo #10

meenarc opened this Issue · 6 comments

2 participants


Is there an override option that lets me specify a private git repo url to push this to?


@meenarc I don't think I understand - the plugin will push to whichever git repo is configured to use, and release the completed cookbook to the community site.

You can change which git remote is used with the --remote flag - is that what you're looking for?

You may also wish to run git remote -v locally in your cookbook directory to see where your git repo is currently pointing to.


Maybe am doing something wrong .
I tried the --remote flag like this.I listed the contents of git remote -v. Ensure I had push permissions and I am on master branch
So I do a knife community release --remote https://myprivate-repo-ip:8443/git/dev-repo.git --no-site-share
And I get ERROR: The remote/branch specified does not seem to exist.


I think you may be passing the wrong argument to the --remote flag.

Here's what you may see from a git remote -v run:

$ git remote -v
origin (fetch)
origin (push)

In this case, I can see that the remote name is origin, and if I wanted to pass this to knife-community, I would use --remote origin as the parameter.

Does your git remote -v command have the "https://myprivate-repo-ip:8443/git/dev-repo.git" in it? if so, what is the short name? Pass that to --remote.


Hi @meenarc,

Were you able to resolve the issue? I wanted to follow up and see if everything was working out.

@miketheman miketheman was assigned

Sorry about the delayed reply. Our internal gitblit was upgraded and couldn't try things for a bit and I also ran into ruby upgrade issues
It worked smoothly after the rets of the stuff got resolved

@meenarc meenarc closed this

Glad to hear it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.