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
If you’re starting a new project, create a new Git repository:
95
-
```bash
96
-
git init my-awesome-project
97
-
cd my-awesome-project
98
-
```
95
+
96
+
```bash
97
+
git init my-awesome-project
98
+
cd my-awesome-project
99
+
```
99
100
100
101
> 🧩 *Puzzle*: What happens if you run `git init` in a directory that already has a `.git` folder?
101
102
@@ -105,25 +106,28 @@ If you’re starting a new project, create a new Git repository:
105
106
You can create a repository directly on GitHub or any other Git hosting service, which will give you a URL to clone it.
106
107
107
108
Once you have a remote repository, you can clone it to your local machine:
108
-
```bash
109
-
git clone <url>
110
-
```
109
+
110
+
```bash
111
+
git clone <url>
112
+
```
111
113
This process will also save the remote repository URL to a variable called `origin`, which is the default name for the remote repository. A repository remote is a version of your repository that is hosted on the internet or another network, allowing you to collaborate with others.
112
114
113
115
> 🧩 *Puzzle*: Can you have multiple remote copies' URLs stored in your local git configuration?
114
116
115
117
> 🏗️ *Quest Preparation*: Create a repository on Github. Then, since we started our repository locally, add the URL manually:
116
-
```bash
117
-
git remote add origin <url>
118
-
```
118
+
119
+
```bash
120
+
git remote add origin <url>
121
+
```
119
122
120
123
2.**Hack away**
121
124
Changes can be bundled or committed separately. Staging is the process of preparing files for a commit.
122
125
You can stage specific files or all changes:
123
-
```bash
124
-
git add <files># stage
125
-
git commit -m "feat: add lunar lasers"# snapshot
126
-
```
126
+
127
+
```bash
128
+
git add <files># stage
129
+
git commit -m "feat: add lunar lasers"# snapshot
130
+
```
127
131
128
132
Commits (versions) will store your changes with a message describing what you did.
129
133
@@ -134,9 +138,9 @@ Commits (versions) will store your changes with a message describing what you di
134
138
3.**Push** your masterpiece to the remote repository:
135
139
In order to collaborate with others, you need to push your changes to the remote repository:
136
140
137
-
```bash
138
-
git push origin main
139
-
```
141
+
```bash
142
+
git push origin main
143
+
```
140
144
141
145
> 🌟 *Pro‑tip*: Use `git add -p` to stage hunks interactively like a choose‑your‑own‑adventure book.
Copy file name to clipboardExpand all lines: class01/class01.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,9 +67,9 @@ julia> Pluto.run()
67
67
To run a local notebook file that you have not opened before, then you need to enter its full path (e.g. `path/to/basics_math.jl`) into the blue box in the main menu.
68
68
69
69
### **Linear Algebra**:
70
-
We have prepared a basic (Pluto) [Linear Algebra Primer](./background_materials/basics_math.jl) to help you brush up on essential concepts. This primer covers key topics such as matrix operations, eigenvalues, and eigenvectors besides other fundamental calculus concepts. It is recommended to review this primer before the first class.
70
+
We have prepared a basic (Pluto) [Linear Algebra Primer](https://learningtooptimize.github.io/LearningToControlClass/dev/class01/background_materials/basics_math.html) to help you brush up on essential concepts. This primer covers key topics such as matrix operations, eigenvalues, and eigenvectors besides other fundamental calculus concepts. It is recommended to review this primer before the first class.
71
71
72
72
### **Optimization**:
73
73
We will use JuMP for some optimization tasks. If you are new to JuMP, please review the [JuMP Tutorial](https://jump.dev/JuMP.jl/stable/tutorials/getting_started/getting_started_with_JuMP/) to familiarize yourself with its syntax and capabilities.
74
74
75
-
Test your knowledge with this (Pluto) [Modeling Exercise](./background_materials/optimization_homework.jl).
75
+
Test your knowledge with this (Pluto) [Modeling Exercise](https://learningtooptimize.github.io/LearningToControlClass/dev/class01/background_materials/optimization_homework.html).
0 commit comments