You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorial/2_creating_a_new_machine.md
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,18 +37,22 @@ on your machine code. A VCS tracks changes to files and allows you to review,
37
37
revert, and isolate changes to make sure you never lose progress or get your
38
38
game into an irrecoverable bad state.
39
39
40
-
Additionally, using a repository means that you can share your code with others,
41
-
which is important when asking for help and support.
40
+
If you use an online repository you can share your code with others, which is
41
+
important when asking for help and support.
42
42
43
-
The most popular system is Git, and you can use Git for free on GitHub. Follow these
44
-
guides to get setup with a GitHub account and create a new repository, which will
43
+
The most popular system is Git. You can use it online with services like GitHub,
44
+
or use it locally to manage files on your computer. Either way you can use Git
45
+
for free.
46
+
47
+
### Online Repository
48
+
Follow these guides to get setup with a GitHub account and create a new repository, which will
45
49
hold all the code for your game.
46
50
47
51
*[Create a GitHub account](https://docs.github.com/en/get-started/start-your-journey/creating-an-account-on-github)
48
52
*[Create a new repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-new-repository)
49
53
*[Clone your repository to your computer](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)
50
54
51
-
If you follow these steps, you'll now have a folder on your computer that you can
55
+
If you followed these steps, you'll now have a folder on your computer that you can
52
56
sync with the online repository, track changes in, and share with others. This
53
57
folder will be your machine folder, discussed in the next step.
54
58
@@ -58,6 +62,23 @@ folder will be your machine folder, discussed in the next step.
58
62
59
63
For managing your repository, a desktop client can save a lot of headache. [SourceTree](https://www.sourcetreeapp.com) and [GitHub Desktop](https://desktop.github.com) are popular, easy-to-use choices.
60
64
65
+
### Offline Repository
66
+
Why would I want to use Git locally? Well, you:
67
+
* Might want to store files in your repository that incorporate intellectual property with restrictive rights that do not permit uploading to any online services
68
+
* May have proprietary information in your repository
69
+
* Could be embarrassed by your terrible code (don't be!)
70
+
71
+
Grab yourself a Git client - there are many fabulous choices, some free. You can get the Git client from Git - it comes with a GUI (git-gui), which makes setting up a repository fairly easy:
72
+
* Make your machine folder
73
+
* Run git-gui in the directory
74
+
* Create your repository
75
+
76
+
[git-scm.com](https://git-scm.com/)
77
+
78
+
When you need to share your repository, you can always convert it to a Git repo, or make a new Git repo with a subset of files in it.
79
+
80
+
!!! tip "Some people use their GitHub repo as a backup. Using Git on a local repository provides significantly less protection, remember to back up properly!"
81
+
61
82
## 3. Your machine folder
62
83
63
84
Okay, so let's get started with your own game's machine folder.
0 commit comments