Difference between revisions of "Git Repositories"

From Gcube Wiki
Jump to: navigation, search
(Reference)
Line 1: Line 1:
= Reference =
 
Git service URL:
 
* https://code-repo.d4science.org/
 
 
Available organizations:
 
* gCubeSystem
 
 
 
= Create a New Repository =
 
= Create a New Repository =
 
From the web interface, click on the ''New Repository'' button.
 
From the web interface, click on the ''New Repository'' button.

Revision as of 21:46, 10 May 2019

Create a New Repository

From the web interface, click on the New Repository button.

- Make sure the owner is the organization

- Create the repo as private

If the name of the repository is myNewRepo and it is created within the gCubeSystem organization, the repo URL is:

https://code-repo.d4science.org/gCubeSystem/myNewRepo.git

Initialize an empty Repository

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://code-repo.d4science.org/gCubeSystem/myNewRepo.git
git push -u origin master

It is strongly recomended that each repository has a README.md (in Markdown format) in the root folder and each significant subfolder. The README should briefly explain the component, how to build it and link the related wiki documentation.

Add an existing Repository

In the root folder of the repository, add the new remote to the configuration and then push the entire repository in the master branch:

git remote add origin https://code-repo.d4science.org/gCubeSystem/myNewRepo.git
git push -u origin master

Back to the CI guide.