๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
โ—๏ธError

[ํ•ด๊ฒฐ๋ฒ•] Push to remoteํ•  ๋•Œ Loading remotes ์˜ค๋ฅ˜(Xcode์—์„œ ์ปค๋ฐ‹ ์—…๋ฐ์ดํŠธ ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ)

by Fomagran ๐Ÿ’ป 2020. 12. 1.
728x90
๋ฐ˜์‘ํ˜•

์•ˆ๋…•ํ•˜์„ธ์š” Foma ์ž…๋‹ˆ๋‹ค!

 

์˜ค๋Š˜์€ Xcode๋กœ git์„ Commitํ•˜๊ณ  push๋ฅผ ํ•˜๋Š”๋ฐ Branches - main์—๋Š” Commit์ด ์—…๋ฐ์ดํŠธ๊ฐ€ ์•ˆ๋˜๊ณ 

 

 

Remotes - origin - main ์—๋งŒ Commit์ด ์ €์žฅ๋˜๋”๋ผ๊ตฌ์š”. ๊ทธ๋ฆฌ๊ณ  Github ์‚ฌ์ดํŠธ์—๋„ ์ž๊พธ ์ปค๋ฐ‹์ด ์—…๋ฐ์ดํŠธ๊ฐ€ 

 

์•ˆ๋˜์„œ ์ด๊ฒŒ ๋ฌด์Šจ ์ƒํ™ฉ์ด์ง€? ํ•˜๊ณ  push๋ฅผ ํ•  ๋•Œ ์ž์„ธํžˆ ๋ด๋ดค๋”๋‹ˆ ์•„๋ž˜ ์‚ฌ์ง„์ฒ˜๋Ÿผ Loading remotes๊ฐ€ ๊ณ„์† ๋˜๋Š”๊ฑฐ์—์š”.

 

๊ทธ๋ž˜์„œ ์—ด์‹ฌํžˆ ๊ตฌ๊ธ€๋งํ•ด๋ณธ ๊ฒฐ๊ณผ Xcode์—์„œ ์ด์ „ ๋นŒ๋“œ๋ฅผ ํ™•์ธํ•  ๋•Œ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ฒจ ์—ฐ๊ฒฐ์ด ๋Š์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค๊ณ  ํ•˜๋„ค์š”.(๋ฌด์Šจ ๋ง์ธ์ง€๋Š” ์ž˜...)

 

Solution


ํ•ด๊ฒฐ๋ฒ•์€ ์šฐ์„  ํ„ฐ๋ฏธ๋„์— git push origin head:main (master์ผ์ˆ˜๋„ ์žˆ์Œ) ์„ ํ•ด์ฃผ์‹œ๊ณ 

ํ•ด๋‹น Branches - main์„ ๊ณผ๊ฐํžˆ ์‚ญ์ œํ•ด์ค๋‹ˆ๋‹ค!!(์ €๋„ ์ง„์งœ ์ž˜๋ชป๋˜๋ฉด ์–ด๋–กํ•˜์ง€... ํ•˜๊ณ  ๋ง์„ค์ด๋‹ค๊ฐ€ ํ–ˆ๋Š”๋ฐ ๋ฌธ์ œ ์—†์–ด์š”!)

๊ทธ ๋‹ค์Œ Remotes์— ์žˆ๋Š” origin์— ์ด๋™ํ•˜์…”์„œ checkout์„ ํ•ด์ค๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋ฉด ๊ฐ€์žฅ ์ตœ๊ทผ์— ํ•œ Commit๋„ ์—…๋ฐ์ดํŠธ๋˜๊ณ  github์‚ฌ์ดํŠธ์— ๋“ค์–ด๊ฐ€๋ด๋„ ์ •์ƒ์ ์œผ๋กœ ์—…๋ฐ์ดํŠธ ๋˜์žˆ์„๊ฑฐ์—์š”!!

 

 

Reference


 

 

Xcode Source Control - Push local changes stuck on Loading

I keep getting this problem with Xcode source control. If I checkout a previous branch and then switch back to my latest branch, sometimes I can no longer push to my remote as it's stuck on loading...

stackoverflow.com

 

728x90
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€