X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/45f10d80d1b584808a6e375214b5be6bc7d2a730..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 a46a1d9318..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.
@@ -54,36 +59,47 @@ Create a git branch named *tutorial_branch* in the *tutorial* Arvados git reposi
~$ 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
-Next, commit all the changes to the local repository, along with a commit message that describes what this script does.
+~/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 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