Skip to content

Commit 4efc7e7

Browse files
authored
docs: revise submodule addition instructions in README
1 parent 83ac227 commit 4efc7e7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,14 @@ To privately manage your input files for each day.
6969

7070
1. **Create Data Repository:**
7171
* Create a **private** repository using the [advent-of-code-yyyy-data](https://github.com/Flashky/advent-of-code-yyyy-data) template.
72-
2. **Add as a Submodule:**
73-
* Clone your new repository locally and add the data repository as a submodule.
74-
75-
```bash
76-
# Ensure you are in the root directory of your new repository
77-
git submodule add -b master [https://github.com/Flashky/advent-of-code-](https://github.com/Flashky/advent-of-code-){year}-data.git src/test/resources/inputs
78-
git commit -m "feat: Add data repository submodule"
79-
git push
80-
```
72+
2. **Add as a [Submodule](https://github.blog/2016-02-01-working-with-submodules/):**
73+
74+
```bash
75+
git clone https://github.com/Flashky/advent-of-code-{year}.git &&
76+
cd advent-of-code-{year} &&
77+
git submodule add -b master https://github.com/Flashky/advent-of-code-{year}-data.git src/test/resources/inputs &&
78+
git push
79+
```
8180

8281
### 🏆 5. Codacy Badges (Optional)
8382

0 commit comments

Comments
 (0)