[์†Œ์ŠคํŠธ๋ฆฌ] Please make sure you have the correct access rights and the repository exists ์—๋Ÿฌ ํ•ด๊ฒฐ

2020. 1. 12. 21:01ใ†๐Ÿ†‡ Error&๊ธฐํƒ€

  • ๋ฒ„์ „ : ์†Œ์ŠคํŠธ๋ฆฌ 4.0
  • ์—๋Ÿฌ ๋ฉ”์‹œ์ง€: Please make sure you have the correct access rights and the repository exists
  • ํ™˜๊ฒฝ: ์†Œ์ŠคํŠธ๋ฆฌ ๊ณ„์ • > ๊ณ„์ •์—์„œ ๊นƒํ—ˆ๋ธŒ ๊ณ„์ •์ด ์ถ”๊ฐ€๋งŒ ๋˜์–ด์žˆ๋Š” ์ƒํƒœ

 

๋งฅ๋ถ์œผ๋กœ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์„ ๋ฐ”๊พธ๊ณ  ๋‚˜์„œ ์†Œ์ŠคํŠธ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ํ•˜๋Š”๋ฐ,

Please make sure you have the correct access rights and the repository exists ์—๋Ÿฌ ๋ฉ”์‹œ์ง€์™€ ํ•จ๊ป˜ ๊นƒํ—™ ํ‘ธ์‹œ๊ฐ€ ๋˜์ง€ ์•Š๋Š” ์—๋Ÿฌ๊ฐ€ ์žˆ์—ˆ๋‹ค. ์ฐพ์•„๋ณด๋‹ˆ ๋งจ ์ฒ˜์Œ ๊นƒํ—ˆ๋ธŒ๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ ํ•„์š”ํ•œ ๊นƒํ—ˆ๋ธŒ ๊ณ„์ • ์ดˆ๊ธฐ ์„ค์ •๊ณผ ssh ํ‚ค ๋“ฑ๋ก์„ ํ•˜์ง€ ์•Š์•„์„œ ๋ฐœ์ƒํ•˜๋Š” ๋ฌธ์ œ์˜€๋‹ค.

 

โ› ๊นƒํ—ˆ๋ธŒ ๊ณ„์ • ์„ค์ •

๋จผ์ € git --version์œผ๋กœ git์ด ์„ค์น˜๋˜์–ด์žˆ๋Š”์ง€ ํ™•์ธํ•œ๋‹ค. ๋งŒ์•ฝ์— ๋ฒ„์ „์ด ๋œจ์ง€ ์•Š๋Š”๋‹ค๋ฉด Git for Mac ์—์„œ ์ธ์Šคํ†จ๋Ÿฌ๋ฅผ ๋‹ค์šด๋กœ๋“œ ๋ฐ›์•„์„œ ์ง„ํ–‰ํ•˜์ž.

๊นƒํ—ˆ๋ธŒ ์ดˆ๊ธฐ ์„ค์ •์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.

git config —global user.name "๊นƒํ—ˆ๋ธŒ ๊ณ„์ •๋ช…"
git config —global user.email ๊นƒํ—ˆ๋ธŒ ๊ฐ€์ž…ํ•œ ์ด๋ฉ”์ผ

์„ค์ •์„ ํ™•์ธํ•˜๊ณ  ์‹ถ์œผ๋ฉด git config --list๋กœ ์ฒดํฌํ•ด๋ณธ๋‹ค.



๐Ÿ”‘ ssh ํ‚ค ์ƒ์„ฑํ•˜๊ธฐ

ssh๋Š” ํ‚ค๋ฅผ ๋งŒ๋“ค๋ฉด ๊ณต๊ฐœํ‚ค(public Key)์™€ ๋น„๊ณต๊ฐœํ‚ค(private Key)๊ฐ€ ์ž๋™์ ์œผ๋กœ ์ƒ์„ฑ๋˜๋Š”๋ฐ, ์šฐ๋ฆฌ๋Š” rsa ๊ณต๊ฐœํ‚ค๋ฅผ ์‚ฌ์šฉํ•  ๊ฒƒ์ด๋‹ค.

์œˆ๋„์šฐ๋Š” ์กฐ๊ธˆ ๋” ๋ณต์žกํ–ˆ๋˜ ๊ฒƒ์œผ๋กœ ๊ธฐ์–ตํ•˜์ง€๋งŒ, ๋งฅ๋ถ ํ„ฐ๋ฏธ๋„์—์„œ๋Š” ๊ฐ„๋‹จํ•œ ๋ช…๋ น์–ด๋กœ ํ‚ค ์ƒ์„ฑ์ด ๊ฐ€๋Šฅํ•˜๋‹ค.
(์ˆ˜ํ–‰ ๋„์ค‘์— ๋ฌผ์–ด๋ณด๋Š” ๊ฒƒ์€ ๋ชจ๋‘ ๋””ํดํŠธ ๊ฐ’์œผ๋กœ ๋„˜๊ฒจ๋„ ์ข‹๋‹ค.)

์ด ๋ช…๋ น์–ด๋ฅผ ์ˆ˜ํ–‰ํ•˜๊ณ  ๋‚˜๋ฉด .pub ํŒŒ์ผ์ด ์ƒ์„ฑ๋˜๋Š”๋ฐ, ์ด ํŒŒ์ผ์„ ์ฐพ๊ธฐ ์œ„ํ•ด์„œ๋Š” ๋งฅ๋ถ์˜ ํŒŒ์ธ๋”์—์„œ ์ˆจ๊น€ ํŒŒ์ผ์„ ๋ณด๊ธฐ ์œ„ํ•œ ๊ฐ„๋‹จํ•œ ํ„ฐ๋ฏธ๋„ ์„ค์ •์ด ํ•„์š”ํ•˜๋‹ค.

ssh-keygen

defaults write com.apple.finder AppleShowAllFiles YES

์ดํ›„์—๋Š” cat ๋ช…๋ น์–ด๋กœ ๊ณต๊ฐœํ‚ค ํŒŒ์ผ ์ด๋ฆ„์„ ํ†ตํ•ด ์ฐพ์€ ๋‹ค์Œ pbcopy๋กœ .pub ํŒŒ์ผ์˜ ๋‚ด์šฉ์„ ๋ณต์‚ฌํ•ด์„œ ์†Œ์ŠคํŠธ๋ฆฌ ๊นƒํ—ˆ๋ธŒ ๊ณ„์ •์— ๋ถ™์ด๊ฑฐ๋‚˜ ๊นƒํ—ˆ๋ธŒ settings> SSH and GPG keys์—์„œ ์ง์ ‘ ํ‚ค๋ฅผ ๋“ฑ๋กํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ๋‹ค.

cat ~/.ssh/id_rsa.pub
pbcopy < ~/.ssh/id_rsa.pub



์†Œ์ŠคํŠธ๋ฆฌ ๊ณ„์ •> ๊ณ„์ •์—์„œ ssh ํ‚ค: id_rsa.pub์ด ํ™•์ธ๋œ๋‹ค๋ฉด ํ‘ธ์‹œ๋„ ์ •์ƒ์ ์œผ๋กœ ์ž‘๋™๋  ๊ฒƒ์ด๋‹ค.