## Create your first repository
* Go to the Diffusion application: https://c4science.ch/diffusion/
* On the top right, {icon plus-square} New Repository
* Select the revision system you want to use, GIT is strongly advised
* Choose a name for your repository (the callsign and short name are optionnal, and are used in the URL)
* If you want to link this repository to an existing project, add in in the Tags field
* Create the repository
* The new repository is not yet active, you can configure access before publishing it
** Policies: Custom access to the repositories. Here you can add your Project, All user or Public for Read/Write operations
** URIs:
*** by default the repo is available with SSH and HTTPS, you can tune the URLs and disable/enable access type
*** You can also add an external URL (to github for instance) and the repo will be imported from there and will not be hosted in c4science. The rate of import is abount 1000 commits per hour
*** Here's an other example for a hosted repository accessible with SSH read/write and HTTPS read-only
{F23530}
*** Here's an example using an external repo as observer:
{F23521}
** When finished, click on {icon play} Activate Repository
### Import a new repository
```
git clone ssh://git@c4science.ch:2222/diffusion/TEST/test.git
cd test
touch README.md
git add README.md
git commit -m "first commit"
git push origin master
```
### Import an existing local repository
```
git remote add origin ssh://git@c4science.ch:2222/diffusion/TEST/test.git
git push -u origin master
git push --tags
```
## Nota Bene
* To use HTTP authentication, you'll have to set a VCS password from your profile page:
https://c4science.ch/settings/panel/vcspassword/