[% locale.maketext('Use this interface to create new repositories or clone existing remote repositories.') %] [% locale.maketext('To add an existing repository to the list of [asis,cPanel]-managed repositories, select that repository path when you create the repository.') %] [% locale.maketext('The system will automatically add and configure the repository.') %] [% locale.maketext('In order to clone private repositories, advanced users should preconfigure access.') %] [% locale.maketext('For more information, read our [output,url,_1,documentation,target,_2,id,_3].','https://go.cpanel.net/PrivateRepositories', 'gitVersionControlPrivateRepo', "lnkGitVersionDocs") %]

[% locale.maketext('Create Repository') %]

[% locale.maketext('Enable this toggle if you want to clone a remote repository, or disable this toggle to create a new repository.') %]
[% locale.maketext('Enter the clone URL for the remote repository.') %] [% locale.maketext('All clone URLs must begin with the [asis,http://], [asis,https://], [asis,ssh://], or [asis,git://] protocols or begin with a username and domain.') %]
  • [% locale.maketext('You [output,strong,must] enter a valid clone [output,acronym,URL,Uniform Resource Locator].') %]
[% locale.maketext('Enter the desired path for the repository’s directory.') %] [% locale.maketext('If you enter a path that does not exist, the system will create the directory when it creates or clones the repository.') %]
[% locale.maketext('Enter a valid directory path, relative to your home directory.') %]
[% locale.maketext('The path cannot contain the [join, and ,_2] directory references, whitespace, or the following characters: [join, ,_1]', ['\\','*','|','"',"'",'<','>','&','@','`','$','{','}','[',']','(',')',';','?',':','=','%','#'], ['“./”','“../”']) %]
  • [% locale.maketext('You [output,strong,must] enter a valid repository path.') %]
  • [% locale.maketext('You [output,strong,must] specify a valid path.') %]
[% locale.maketext('This name does [output,em,not] impact functionality, and instead functions [output,em,only] as a display name.') %]
[% locale.maketext('The repository name may [output,strong,not] include the “[output,chr,60]” and “[output,chr,62]” characters.') %]
  • [% locale.maketext('You [output,strong,must] enter a valid repository name.') %]
  • [% locale.maketext('The repository name may [output,strong,not] include the “[output,chr,60]” and “[output,chr,62]” characters.') %]

[% IF ssh %]

[% locale.maketext('Related Links')%]

[% END %]

[% locale.maketext("Run these commands on your local computer.") %]

[% locale.maketext("For an existing project …") %]

[% locale.maketext("Step 1:") %] [% locale.maketext("Navigate to your repository’s directory:") %] cd /path/to/your/repo
[% locale.maketext("Step 2:") %] [% locale.maketext("Configure your local repository to push to the [asis,cPanel]-hosted repository:") %] git remote add origin {{repository.summary.remoteURL}} git push -u origin master git remote add origin {{repository.summary.remoteURL}}

[% locale.maketext("To start a new project …") %]

[% locale.maketext("Step 1:") %] [% locale.maketext("Clone the [asis,cPanel]-hosted repository to your local computer and navigate to its directory:") %] git clone {{repository.summary.remoteURL}} cd {{repository.summary.directoryName}} git clone {{repository.summary.remoteURL}} cd {{repository.summary.directoryName}}
[% locale.maketext("Step 2:") %] [% locale.maketext("Create a README file:") %] echo "# README" >> README.md echo "# README" >> README.md
[% locale.maketext("Step 3:") %] [% locale.maketext("Commit the README file to the project:") %] git add README.md git commit -m "Initial Commit" git push -u origin master git add README.md git commit -m "Initial Commit"