Git Repositories

From Gcube Wiki
Revision as of 21:09, 10 May 2019 by Manuele.simi (Talk | contribs) (Create a New Repository)

Jump to: navigation, search

Reference

Git service URL:

Organizations:

* gCubeSystem

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 NewRepo 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

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