๐Ÿ“š Computer Science/Git

[git] commit์ด git์— ๋ฐ˜์˜๋˜์ง€ ์•Š์„ ๋•Œ ๋Œ€์ฒ˜๋ฒ•

ibelieveinme 2021. 9. 16. 07:42
728x90

1. git url์— origin์œผ๋กœ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•˜์ž

git remote -v

'origin https://github.com/๊ณ„์ •/๋ ˆํผ์ง€ํ† ๋ฆฌ' ๋ผ๋Š” ๊ฒฐ๊ณผ๊ฐ€ ๋‚˜์™€์•ผ ํ•œ๋‹ค.

 

2. ์•„๋‹ˆ๋ผ๋ฉด remote์— ๊ณ„์ • ์—ฐ๊ฒฐ์ด ์ž˜ ์•ˆ๋˜์–ด ์žˆ๋Š” ๊ฒƒ์ด๋ฏ€๋กœ ์—ฐ๊ฒฐํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

git remote add origin https://github.com/๊ณ„์ •/๋ฆฌํฌ์ง€ํ† ๋ฆฌ

3. ๊ทธ๋ฆฌ๊ณ  ๋‹ค์‹œ pushํ•ด๋ณด๋ฉด OK.

 

 

[git ๊ณต์‹ reference ์ฐธ์กฐ]

 

Git - ๋ฆฌ๋ชจํŠธ ์ €์žฅ์†Œ

์›๊ฒฉ ์ €์žฅ์†Œ๋ผ ํ•˜๋”๋ผ๋„ ๋กœ์ปฌ ์‹œ์Šคํ…œ์— ์œ„์น˜ํ•  ์ˆ˜๋„ ์žˆ๋‹ค. remote'' ์ €์žฅ์†Œ๋ผ๊ณ  ์ด๋ฆ„์ด ๋ถ™์–ด์žˆ์–ด๋„ ์ด ์›๊ฒฉ ์ €์žฅ์†Œ๊ฐ€ ์‚ฌ์‹ค ๊ฐ™์€ ๋กœ์ปฌ ์‹œ์Šคํ…œ์— ์กด์žฌํ•  ์ˆ˜๋„ ์žˆ๋‹ค. ์—ฌ๊ธฐ์„œ remote'' ๋ผ๋Š” ์ด๋ฆ„์€ ๋ฐ˜๋“œ

git-scm.com

 

728x90