- Today
- Total
๋ชฉ๋ก์ ์ฒด ๊ธ (350)
DATA101

๊ธฐ๋ณธ ๊ฐ์ - A๋ผ๋ branch์ B๋ผ๋ branch๊ฐ ์๋ค๊ณ ๊ฐ์ - ์ต์ด branch ์์น๋ A๋ผ๊ณ ๊ฐ์ - ๋ชฉํ: A branch์ B branch๋ฅผ ๋ณํฉํ์ฌ ๋ก์ปฌ, ์๊ฒฉ ์ ์ฅ์์ ๋ชจ๋ ํ์ผ์ ์ต์ ํ์ผ๋ก ์ ๋ฐ์ดํธ Step 1. ๋ก์ปฌ ์ ์ฅ์ ์์ ๋ ํ์ผ ์ ๋ก๋ - ์๋ ๊ทธ๋ฆผ 1 ๋ด 1๏ธโฃ๊ณผ ๊ฐ์ด, ๋ก์ปฌ A branch์์ ์์ ํ ํ์ผ์ด ์๊ฒฉ ์ ์ฅ์์ ์ฐจ์ด๊ฐ ์๋์ง ํ์ธ git status - ์์ ๋ ํ์ผ์ด ์์ ๊ฒฝ์ฐ ์๊ฒฉ ์ ์ฅ์์ push git commit -am "์ปค๋ฐ๋ฉ์์ง" - ํ์ผ push git push origin branchA Step 2. ๋ก์ปฌ branch ๊ฐ merge - remote update ์งํ git remote update - branchB๋ก ์ด๋ git checkout..

โ ์๋ฌ ์ํฉ- branch ์ด๋ ์๋ ์ค ์๊ฒฉ ์ ์ฅ์ ๋ด branch ์ ๋ณด๋ฅผ ์ ๋๋ก ์ฝ์ด์ค์ง ๋ชปํ๋ ์ํฉ ๋ฐ์- push, pull, merge ๋ฑ ์๊ฒฉ ์ ์ฅ์์ ํต์ ํ ๋ ์ธ์ ๋ ๋ฐ์ํ ์ ์๋ ์๋ฌ ์ค ํ๋๐ ์๋ฌ ๋ฉ์์งfatal: 'development' does not appear to be a git repositoryfatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.โจ ํด๊ฒฐ ๋ฐฉ๋ฒ2๊ฐ์ง ํด๊ฒฐ ๋ฐฉ๋ฒ์ด ์์ต๋๋ค.์ฒซ ๋ฒ์งธ, ์๊ฒฉ ์ ์ฅ์ ์ ๋ณด ์ ๋ฐ์ดํธ ๋ฐฉ๋ฒ๋ ๋ฒ์งธ, ์๊ฒฉ ์ ์ฅ์ ์ฐ๊ฒฐ ์ ๊ฑฐ ํ ์ฌ์ฐ๊ฒฐ๊ฐ๊ฐ ์์๋ณด๊ฒ ์ต๋๋ค.๐ก ์๋ฃจ์ 1..

โ ์๋ฌ ์ํฉ checkout (branch ์ด๋) ๋๋ pull ์ ๋ฐ์ ๐ ์๋ฌ ๋ฉ์์ง error: Your local changes to the following files would be overwritten by checkout: ... Please commit your changes or stash them before you switch branches. Aborting โจ ํด๊ฒฐ ๋ฐฉ๋ฒ Step 1) ๋ณ๋์ฌํญ ์คํ ๋ด ์ ์ฅ stash: ํ์ฌ Staging ์์ญ ๋ด ํ์ผ์ ๋ณ๋์ฌํญ์ ์คํ์ ๋ฃ์ด๋๊ธฐ git stash Step 2) checkout ๋๋ pull ์ํ checkout ํฌ๋ง ์ git checkout [๋ณ๊ฒฝํ branch ์ด๋ฆ] pull ํฌ๋ง ์ git pull origin [bra..

Step 1. ๊ธฐ์กด Repository ์ฐ๊ฒฐ ํด์ git remote remove origin Step 2. ์๋ก์ด Repository ์ฐ๊ฒฐ git remote add origin [์๋ก์ด Repository URL] ํฌ์คํ ๋ด์ฉ์ ์ค๋ฅ๊ฐ ์๋ค๋ฉด ์๋์ ๋๊ธ ๋จ๊ฒจ์ฃผ์ธ์. ๊ณ ๋ง์ต๋๋ค :)

์๋ฌ ์ํฉ React ๊ธฐ๋ฐ ํ๋ฉด UI ๊ตฌํ ์ค ์๋ ์๋ฌ ๋ฉ์์ง ํ์ธ ์๋ฌ ๋ฉ์์ง JSX expressions must have one parent element. ์๋ฌ ์์ธ - JSX ๋ฌธ๋ฒ์์ Component๊ฐ ์ฌ๋ฌ ๊ฐ ์๋ค๋ฉด ๋ฐ๋์ parent element๋ก ๊ฐ์ธ์ผ ํ๋๋ฐ ๊ทธ๋ ์ง ์์์ ๋ฐ์ํ ์ด์ - Component ๋ด๋ถ๋ ํ๋์ DOM Tree ๊ตฌ์กฐ๋ก ์ด๋ฃจ์ด์ ธ์ผ ํ๋ค๋ ๊ท์น์ ๋ฐ๋ผ์ผ ํจ ํด๊ฒฐ์ฑ ๊ฐ๋จํ๊ฒ div ํ๊ทธ ๋๋ fragment ํ๊ทธ ๋๋ ์ค๊ดํธ{}๋ก ์ฌ๋ฌ Component๋ฅผ ๊ฐ์ธ๋ parent element๋ฅผ ์ฌ์ฉํ๋ฉด ์ฝ๊ฒ ํด๊ฒฐ ๊ฐ๋ฅ ํด๊ฒฐ์ฑ ์์1: div ํ๊ทธ ... ํด๊ฒฐ์ฑ ์์2: fragment ํ๊ทธ ... ํด๊ฒฐ์ฑ ์์3: ํ๊ทธ๋ช ์๋ต๊ฐ๋ฅ ... ํฌ์คํ ๋ด์ฉ์ ์ค๋ฅ๊ฐ ์๋ค๋ฉด ์..

์๋ฌ ์ํฉ React ์๋ฒ ์คํ ์ค์ ์๋์ ๊ฐ์ ์๋ฌ ๋ฉ์์ง ํ์ธ ์๋ฌ ๋ฉ์์ง 'react-scripts'์(๋) ๋ด๋ถ ๋๋ ์ธ๋ถ ๋ช ๋ น, ์คํํ ์ ์๋ ํ๋ก๊ทธ๋จ, ๋๋๋ฐฐ์น ํ์ผ์ด ์๋๋๋ค. ํด๊ฒฐ์ฑ npm update ํ ์๋ฒ ์ฌ์์ npm update npm update ํ์๋ ์๋ฒ ์คํ์ด ์ ๋๋ค๋ฉด react-scripts ์ค์น ํ ์๋ฒ ์ฌ์์ npm install -g react-scripts npm start ํฌ์คํ ๋ด์ฉ์ ์ค๋ฅ๊ฐ ์๋ค๋ฉด ์๋์ ๋๊ธ ๋จ๊ฒจ์ฃผ์ธ์. ๊ณ ๋ง์ต๋๋ค :)

์๋ฌ ์ํฉ Repository์์ ์๋ก์ด Branch๊ฐ ์ ๋ฐ์ดํธ๋์ด checkout ์๋ ์ค ์๋์ ๊ฐ์ ์๋ฌ ๋ฐ์ ์๋ฌ ๋ฉ์์ง error: pathspec 'development' did not match any file(s) known to git ๋ฌธ์ ์์ธ Branch ์ ๋ฐ์ดํธ๊ฐ ์ ๋์ด ์๋ฌ ๋ฐ์ ํด๊ฒฐ์ฑ git remote update git checkout [branch ์ด๋ฆ] ํฌ์คํ ๋ด์ฉ์ ์ค๋ฅ๊ฐ ์๋ค๋ฉด ์๋์ ๋๊ธ ๋จ๊ฒจ์ฃผ์ธ์. ๊ณ ๋ง์ต๋๋ค :)

MySQL Shell ๋ฃจํธ ๊ถํ ์ ๊ทผ ํฐ๋ฏธ๋์ ์๋ ๋ช ๋ น์ด ์ ๋ ฅ mysql -u root -p ๋ฃจํธ ๊ณ์ ๋น๋ฐ๋ฒํธ ์ ๋ ฅ ๊ธฐ์กด ๋น๋ฐ๋ฒํธ ์ ๋ ฅ MySQL Shell์ ๋ฃจํธ๊ถํ์ผ๋ก ์ ๊ทผํ์๋ค๋ฉด, ์๋์ ๊ฐ์ด ์ฌ์ฉ์ ์ด๋ฆ๊ณผ ๋ณ๊ฒฝํ ๋น๋ฐ๋ฒํธ ์ ๋ ฅ ALTER USER '์ฌ์ฉ์ ์ด๋ฆ'@'localhost' IDENTIFIED BY '์๋ก์ด ๋น๋ฐ๋ฒํธ'; FLUSH PRIVILEGES; OK๋ฌธ์ด ๋์๋ค๋ฉด ๋น๋ฐ๋ฒํธ ๋ณ๊ฒฝ ์๋ฃ ํฌ์คํ ๋ด์ฉ์ ์ค๋ฅ๊ฐ ์๋ค๋ฉด ์๋์ ๋๊ธ ๋จ๊ฒจ์ฃผ์ธ์. ๊ณ ๋ง์ต๋๋ค :)