TIL/Git
[Git] Your configuration specifies to merge with the ref 'refs/heads/branch name' from the remote, but no such ref was fetched
inistory
2022. 8. 5. 04:37
๋ฌธ์
git pull ์ ์๋์ ๊ฐ์ ์๋ฌ๊ฐ ์๊ฒผ๋ค.
our configuration specifies to merge with the ref 'refs/heads/branch name'from the remote, but no such ref was fetched
ํด๊ฒฐ ๋ฐฉ๋ฒ
ํด๋น ๋ธ๋์น๊ฐ local์๋ง ์กด์ฌํ๊ณ remote์๋ ์กด์ฌํ์ง ์์ ๋ ๋ฐ์ํ๋ค๊ณ ํ๋ค.
1. ํด๋น ๋ธ๋์น๋ฅผ remote์์ ๋ฐ์์ค๊ธฐ ์ํด update ์ค์
git remote update
2. ๋ธ๋์น๋ฅผ ํ์ธ
git branch -a
3. remote ๋ธ๋์น๋ฅผ ๊ฐ์ ธ์ค๊ธฐ
git checkout -t <branch name>
4. ๋ธ๋์น ์ ํ
git checkout <branch name>
์ฐธ๊ณ