--- layout: default navsection: userguide title: Adding a new Arvados git repository ... {% comment %} Copyright (C) The Arvados Authors. All rights reserved. SPDX-License-Identifier: CC-BY-SA-3.0 {% endcomment %} Arvados supports managing git repositories. You can access these repositories using your Arvados credentials and share them with other Arvados users. {% include 'tutorial_expectations' %} h2. Setting up Git Before you start using Git and arvados repositories, you should do some basic configuration (you only need to do this the first time):
~$ git config --global user.name "Your Name"
~$ git config --global user.email $USER@example.com
h2. Add "tutorial" repository On the Arvados Workbench, click on the dropdown menu icon (Account Management) in the upper right corner of the top navigation menu to access the user settings menu, and click on the menu item *Repositories*. In the *Repositories* page, you will see the + NEW REPOSITORY button. !{width: 100%;}{{ site.baseurl }}/images/repositories-panel.png! Click the + NEW REPOSITORY button to open the popup to add a new Arvados repository. You will see a text box where you can enter the name of the repository. Enter *tutorial* in this text box and click on *Create*. {% include 'notebox_begin' %} The name you enter here must begin with a letter and can only contain alphanumeric characters. {% include 'notebox_end' %} !{width: 100%;}{{ site.baseurl }}/images/add-new-repository.png! This will create a new repository with the name @$USER/tutorial@. It can be accessed using the URL https://git.{{ site.arvados_api_host }}/$USER/tutorial.git or git@git.{{ site.arvados_api_host }}:$USER/tutorial.git Back in the *Repositories* page, you should see the @$USER/tutorial@ repository listed in the name column with these URLs. !{display: block;margin-left: 25px;margin-right: auto;}{{ site.baseurl }}/images/added-new-repository.png! You are now ready to use this *tutorial* repository to run your crunch scripts.