Kart Git And TUFLOW: Difference between revisions

Content deleted Content added
Line 50:
<pre>
git clone git@gitlab.com:ellis_symons/tutorial-model.git
</pre>
Once created, you should change directory into the newly cloned project directory:
<pre>
cd tutorial-model
</pre>
====3. Adding Files====
Once the repository is cloned, you can then add files. These can be existing files or files you start creating as part of a new model build. As an example, one of the first files that can be added is a <tt>.gitignore</tt> file. The example below is a template that can be copied when needed. To create this file, simply create a new text document and rename it to ".gitignore" and save it inside the cloned project folder (next to the ".git" folder).
<pre>
check*
results*
model/gis*
model/grid*
model/tin*
model/xf*
runs/log*
runs/_ TUFLOW Simulations.log
bc_dbase/xf*
*.qgz
</pre>
Once created, the .gitignore file can be added via git bash, Git GUI, or any other software that has version control integration (e.g. Visual Studio Code).
<pre>
git add .gitignore
</pre>