- Today
- Total
๋ชฉ๋กGit (11)
DATA101
โ ์๋ฌ ์ํฉ 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] ํฌ์คํ ๋ด์ฉ์ ์ค๋ฅ๊ฐ ์๋ค๋ฉด ์๋์ ๋๊ธ ๋จ๊ฒจ์ฃผ์ธ์. ๊ณ ๋ง์ต๋๋ค :)
์๋ฌ ์ํฉ Repository์์ ์๋ก์ด Branch๊ฐ ์ ๋ฐ์ดํธ๋์ด checkout ์๋ ์ค ์๋์ ๊ฐ์ ์๋ฌ ๋ฐ์ ์๋ฌ ๋ฉ์์ง error: pathspec 'development' did not match any file(s) known to git ๋ฌธ์ ์์ธ Branch ์ ๋ฐ์ดํธ๊ฐ ์ ๋์ด ์๋ฌ ๋ฐ์ ํด๊ฒฐ์ฑ git remote update git checkout [branch ์ด๋ฆ] ํฌ์คํ ๋ด์ฉ์ ์ค๋ฅ๊ฐ ์๋ค๋ฉด ์๋์ ๋๊ธ ๋จ๊ฒจ์ฃผ์ธ์. ๊ณ ๋ง์ต๋๋ค :)
