Kart Git And TUFLOW: Difference between revisions

Content deleted Content added
Line 119:
==Cloning an Existing Repository==
Once your model repository is setup it is desirable to be able to clone the repository so that others can work on it. The steps below outline how this can be done, it is assumed that Git Bash has been setup and configured with an SSH key and that the user has been given access to push/pull to the remote:
====1. Clone Control File Repository====
In Git Bash, change directory to where the TUFLOW model will sit (Note: bash will require forward slashes in file paths <tt>/</tt>):
<pre>
cd c:/projects
</pre>
Use <tt>git clone</tt> to clone the repo (Note: make sure to use the SSH repository address):
<pre>
git clone git@gitlab.com:ellis_symons/tutorial-model.git
</pre>
====2. Clone GIS File Repository====
Once the main project has been cloned, change directory into the model folder (where the "gis" folder will sit)
</pre>
cd tutorial-model/model
</pre>
Clone the kart repository assigning it the desired GPKG name (in this case the gpkg will be called "gis_database.gpkg"):
<pre>
kart.exe clone git@gitlab.com:ellis_symons/tutorial-model-gis.git gis_database
</pre>
Rename the "gis_database" folder to "gis" to match TUFLOW folder naming convention.
 
This will copy all the input text control files (and boundary files) as well as the gis layers. The grid inputs have been excluded thus far from being versioned, this is due to their size (usually very big) and the fact that they don't often change means they don't have to be versioned typically. So at this point in the process any grid files will have to be copied from where they are being stored into the correct directory location.