X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/406b3de5426bf0d63564410cf6caf2834ba2b7bb..5ff4dac7a9ee28eb35a796b80421a6d3d1e5ecd0:/doc/user/tutorials/git-arvados-guide.html.textile.liquid
diff --git a/doc/user/tutorials/git-arvados-guide.html.textile.liquid b/doc/user/tutorials/git-arvados-guide.html.textile.liquid
index cabe43deb4..2e255219d2 100644
--- a/doc/user/tutorials/git-arvados-guide.html.textile.liquid
+++ b/doc/user/tutorials/git-arvados-guide.html.textile.liquid
@@ -3,6 +3,11 @@ layout: default
navsection: userguide
title: Working with an Arvados git repository
...
+{% comment %}
+Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: CC-BY-SA-3.0
+{% endcomment %}
This tutorial describes how to work with a new Arvados git repository. Working with an Arvados git repository is analogous to working with other public git repositories. It will show you how to upload custom scripts to a remote Arvados repository, so you can use it in Arvados pipelines.
@@ -50,40 +55,51 @@ Ignore any warning that you are cloning an empty repository.
h2. Creating a git branch in an Arvados repository
+Create a git branch named *tutorial_branch* in the *tutorial* Arvados git repository.
+
~$ cd tutorial
-~$ git checkout -b tutorial_branch
+~/tutorial$ git checkout -b tutorial_branch
+~$ echo 'hello world' > tutorial.txt
-
~/tutorial$ mkdir crunch_scripts
+~/tutorial$ cd crunch_scripts
-~$ git add tutorial.txt
-
~/tutorial/crunch_scripts$ nano hash.py
+
+Add the following code to compute the MD5 hash of each file in a collection
+
+~/tutorial/crunch_scripts$ chmod +x hash.py
+
+Next, add the file to the git repository. This tells @git@ that the file should be included on the next commit.
+
+notextile. ~/tutorial/crunch_scripts$ git add hash.py
-Next, commit all the changes to the local repository, along with a commit message tht describes what this script does.
+Next, commit your changes. All staged changes are recorded into the local git repository:
~$ git commit -a -m "Added tutorial.txt"
+~/tutorial/crunch_scripts$ git commit -m "my first script"
~$ git push origin tutorial_branch
+~/tutorial/crunch_scripts$ git push origin tutorial_branch