Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Private Git on OpenShift

Tags:

git

openshift

Is any way to configure a private git repository in OpenShift?

Or OpenShift doesn't provide external access to Git repositories?

like image 542
Berneck Avatar asked Aug 01 '13 17:08

Berneck


People also ask

Can I use Git privately?

Making a repository privateGitHub will detach public forks of the public repository and put them into a new network. Public forks are not made private. If you're using GitHub Free for personal accounts or organizations, some features won't be available in the repository after you change the visibility to private.

Can I Deploy private repository GitHub?

To register the repository SSH key with your private repository on GitHub, go to the Settings for the repository. On GitHub the repository SSH key is referred to by the term Deploy key. Search down the settings page and find the Deploy keys section and select it. Click on the Add deploy key button.

Can private GitHub repos be shared?

You can invite users to become collaborators to your personal repository. If you're using GitHub Free, you can add unlimited collaborators on public and private repositories. Repositories owned by an organization can grant more granular access. For more information, see "Access permissions on GitHub."


1 Answers

You need to execute the following steps:

git clone <your-external-repo-url>
change to newly cloned git directory
git remote add openshift -f <openshift-git-repo-url>
git merge openshift/master -s recursive -X ours

git push openshift master

Here's the reference

like image 170
Deividi Cavarzan Avatar answered Oct 20 '22 12:10

Deividi Cavarzan