aboutsummaryrefslogtreecommitdiff
path: root/docs/contribution/cloning.md
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-09-07 22:06:30 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-09-25 00:12:48 +0200
commit60b62e370ee566010f88e65df3981125dc17be2d (patch)
tree48e2b2d22cea391ca4b653a8fd2a351657f1b630 /docs/contribution/cloning.md
parenta579fa30b9faced48499028f32e3ae53d7eeb142 (diff)
Simplify README.md
Add system-requirements.md Add using-git-bisect.md Add run-build-export.md Add cloning.md Add debugging.md Add rebasing.md Includes PR squashing Simplify .vscode/launch.json
Diffstat (limited to 'docs/contribution/cloning.md')
-rw-r--r--docs/contribution/cloning.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/contribution/cloning.md b/docs/contribution/cloning.md
new file mode 100644
index 0000000..06a84bb
--- /dev/null
+++ b/docs/contribution/cloning.md
@@ -0,0 +1,22 @@
+# Cloning
+
+If you do not have Git installed foremost you need to install it at https://git-scm.com/download.
+
+Once installed you need to clone OpenVic:
+```sh
+git clone https://github.com/OpenVicProject/OpenVic.git
+```
+After cloning you must initialize and update the submodules:
+```sh
+cd OpenVic
+git submodule update --init --recursive
+```
+Updating the submodules is neccessary every time the dependencies are updated, if you're unsure, on every `git pull` you should also call `git submodule update --init --recursive`
+
+To update the repo you must pull the repo:
+```sh
+git pull
+```
+Git may install a gui with it, this gui can be a useful external tool for doing things related to git, (especially commits) you can open it via `git gui`.
+
+Further tutorials and documentation on git can be found at https://git-scm.com/book. \ No newline at end of file