๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

TIL/Git

[Git] git pull updating ์•ˆ ๋ฉˆ์ถค

๋ฌธ์ œ

git pull ๋ช…๋ น์–ด๋ฅผ ์ณค์„ ๋•Œ,

Updating e38758f..4901284

์ด๋Ÿฐ์‹์œผ๋กœ ๋ฌดํ•œ์ • ๋Œ์•„๊ฐ€๊ธฐ๋งŒํ•˜๊ณ  ์‹คํ–‰์ด ์™„๋ฃŒ๊ฐ€ ์•ˆ๋  ๋•Œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

git fsck && git gc --prune=now
  • ๋ถˆํ•„์š”ํ•œ git ๊ฐ์ฒด๋ฅผ ์ œ๊ฑฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
    • git-fsck : ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์žˆ๋Š” ๊ฐœ์ฒด์˜ ์—ฐ๊ฒฐ์„ฑ๊ณผ ์œ ํšจ์„ฑ ํ™•์ธ
    • git-gc : ๋ถˆํ•„์š”ํ•œ ํŒŒ์ผ ์ •๋ฆฌ ๋ฐ ๋กœ์ปฌ ์ €์žฅ์†Œ ์ตœ์ ํ™”

์ฐธ๊ณ  ์ž๋ฃŒ

https://stackoverflow.com/questions/44031150/why-does-git-pull-hang