`git submodule add 'repository url' [name]`
--> ํ๋ก์ ํธ์ ํ๋ก ํธ ๋ ํฌ์งํ ๋ฆฌ ๋ด ํ์ผ์ ๊ฐ์ ธ์ด
(npm ๋ฏธ์ค์น ์ ๋จผ์ ์คํ)
`npm install`
`npm install --force`
--> front ์ฝ๋ ์คํ๋จ
--> ๊ทธ ํ์ ๋ฐฑ์๋ ์ฝ๋ ์คํํด์ฃผ๊ธฐ
ํฐ๋ฏธ๋์์ `ctrl+c` ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ npm ์ข ๋ฃ
๋ค์ ์คํํ ๋
`npm start` ๋ก ์คํํด์ฃผ๊ธฐ
โกsubmodule pull ๋ช ๋ น์ด
์๋ธ๋ชจ๋ ์ํ ํ์ธ
`git submodule`
->ํ์ฌ ์๋ธ๋ชจ๋์ ์ํ๋ฅผ ํ์ธํจ
์๋ธ๋ชจ๋ ์ ๋ฐ์ดํธ
`git submodule update --recursive --remote`
--> ์๋ธ๋ชจ๋์ ์ ๋ฐ์ดํธํ๊ณ ์๋ธ๋ชจ๋์ ์ต์ ์ปค๋ฐ์ ๊ฐ์ ธ์ด
๋ณ๊ฒฝ์ฌํญ ์ปค๋ฐ
`git add <submodule-directory>` --> ์๋ธ๋ชจ๋ ๋๋ ํ ๋ฆฌ๋ฅผ ์คํ ์ด์ง
`git commit -m "message"` --> ์๋ธ๋ชจ๋ ์ ๋ฐ์ดํธ ์ปค๋ฐ
๋ถ๋ชจ ํ๋ก์ ํธ ํธ์
`git push`
'study memo' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
spring boot db ๊ฒ์ฌ X (0) | 2025.02.12 |
---|---|
detected dubious ownership in repository at '๊ฒฝ๋ก' (0) | 2024.10.23 |
nginx cors ์ค์ ์ฝ๋ ์ ์ฅ์ฉ (0) | 2024.07.26 |