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

Git ์„ค์น˜ ๋ฐ Github ์—ฐ๋™

by coderSohyun 2022. 5. 17.

1. github ํšŒ์›๊ฐ€์ž… โœ…

 

2. git ์„ค์น˜

https://git-scm.com/downloads

 

3. ํ”„๋กœ์ ํŠธ git ์—ฐ๋™

 

Step 1 > ํ”„๋กœ์ ํŠธ ๋“ค์–ด๊ฐ€์„œ ๋งˆ์šฐ์Šค ์šฐํด๋ฆญํ•˜๋ฉด 'git bash here' ๋‚˜์˜ด.

Step 2 > git bash๋กœ ๋“ค์–ด๊ฐ€์„œ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑํ•˜๊ธฐ

 

git init
git add .
git commit -m '์ปค๋ฐ‹ํ•˜๊ณ  ์‹ถ์€ ๋‚ด์šฉ'
git remote add origin ์ฃผ์†Œ
git push origin master

- ์ฃผ์†Œ๋Š” github์—์„œ ์ƒˆ๋กœ ๋งŒ๋“  ๋ ˆํฌ์ง€ํ† ๋ฆฌ ์ฃผ์†Œ ํด๋ฆญ ํ•ด์˜ค๋ฉด ๋จ.

 

* ๊นƒํ—ˆ๋ธŒ์—์„œ ์ƒˆ๋กญ๊ฒŒ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•˜๋ฉด default ๋ธŒ๋žœ์น˜๊ฐ€ main์ž„

 

4. commits

feat: ์ƒˆ๋กœ์šด feature์„ ๊ตฌํ˜„ํ–ˆ์„ ๋•Œ

fix: ์˜ค๋ฅ˜๋ฅผ ์ˆ˜์ •ํ–ˆ์„ ๋•Œ

chore: ๊ธฐ๋Šฅ์—์„œ ์ถ”๊ฐ€์ ์œผ๋กœ ์„ค์ • ํŒŒ์ผ์„ ๋„ฃ์—ˆ๊ฑฐ๋‚˜ ํŒŒ์ผ์„ ์‚ญ์ œํ–ˆ์„ ๋•Œ

'๊ธฐํƒ€' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Google Colab ํŒŒ์ผ Github๋กœ pushํ•˜๊ธฐ  (0) 2023.08.18