๊ด€๋ฆฌ ๋ฉ”๋‰ด

๋ชฉ๋กgit repository (2)

Hey Tech

[Github] ์ƒˆ๋กœ์šด ๋ ˆํฌ์ง€ํ† ๋ฆฌ(repository) remote ๋น ๋ฅด๊ฒŒ ๋ณ€๊ฒฝํ•˜๋Š” ๋ฐฉ๋ฒ•!

์•ˆ๋…•ํ•˜์„ธ์š” ๐Ÿ‘จ‍๐Ÿ’ป ์˜ค๋Š˜์€ Github ๊ธฐ์กด ๋ฆฌํฌ์ง€ํ† ๋ฆฌ(repository)๋ฅผ ์ œ๊ฑฐํ•˜๊ณ  ์ƒˆ๋กœ์šด ๋ฆฌํฌ์ง€ํ† ๋ฆฌ remote๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์†Œ๊ฐœํ•ด ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ์•„๋ž˜ 2๊ฐ€์ง€ ์ ˆ์ฐจ๋ฅผ ์ˆœ์„œ๋Œ€๋กœ ์ปค๋งจ๋“œ๋ผ์ธ(macOS: ํ„ฐ๋ฏธ๋„)์— ์ž…๋ ฅํ•ด ์ฃผ์‹œ๋ฉด ๋œ๋‹ต๋‹ˆ๋‹ค :) 1. ๊ธฐ์กด ๋ฆฌํฌ์ง€ํ† ๋ฆฌ remote ์ œ๊ฑฐ git remote remove origin 2. ์ƒˆ๋กœ์šด ๋ฆฌํฌ์ง€ํ† ๋ฆฌ remote ์ถ”๊ฐ€ git remote add origin [์›๊ฒฉ์ €์žฅ์†Œ ์ฃผ์†Œ] ์›๊ฒฉ ์ €์žฅ์†Œ ์ด๋ฆ„์€ https://github.com/์‚ฌ์šฉ์ž์ด๋ฆ„/๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ด๋ฆ„ ํ˜•ํƒœ๋กœ ์ž…๋ ฅํ•ด ์ค๋‹ˆ๋‹ค. ์˜ค๋Š˜์€ Github์—์„œ ๊ธฐ์กด ๋ฆฌํฌ์ง€ํ† ๋ฆฌ remote๋ฅผ ์ œ๊ฑฐํ•˜๊ณ  ์ƒˆ๋กœ์šด ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฐ„๋‹จํ•œ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ดค์Šต๋‹ˆ๋‹ค. ํฌ์ŠคํŒ… ๋‚ด์šฉ์— ์˜ค๋ฅ˜๊ฐ€ ์žˆ์„ ๊ฒฝ์šฐ ์•„๋ž˜์— ๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡ ๋Œ“๊ธ€..

SW ๊ฐœ๋ฐœ/Git 2021. 8. 10. 17:23