๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
โœ’๏ธ GitHub & Git

[GitHub & Git] ๊นƒํ—ˆ๋ธŒ(GitHub) Productive-Box ๋ฅผ ์ด์šฉํ•œ Commit ์‹œ๊ฐ ํ†ต๊ณ„ ๋…ธ์ถœ

by A Lim Han 2023. 11. 3.

๐Ÿ“› ๊นƒํ—ˆ๋ธŒ(GitHub) Productive-Box ๋ฅผ ์ด์šฉํ•œ Commit ์‹œ๊ฐ ํ†ต๊ณ„ ๋…ธ์ถœ

1.   ํ•˜๋‹จ์˜ ๋งํฌ๋กœ ์ด๋™ ํ›„ ๋ ˆํฌ์ง€ํ† ๋ฆฌ fork

-->  https://github.com/techinpark/productive-box

 

GitHub - techinpark/productive-box: Are you an early ๐Ÿค or a night ๐Ÿฆ‰? Let's check out in gist

Are you an early ๐Ÿค or a night ๐Ÿฆ‰? Let's check out in gist - GitHub - techinpark/productive-box: Are you an early ๐Ÿค or a night ๐Ÿฆ‰? Let's check out in gist

github.com

 


 

++  ๋ ˆํฌ์ง€ํ† ๋ฆฌ ํฌํฌ ๋ฐฉ๋ฒ•์ด ๊ถ๊ธˆํ•˜๋‹ค๋ฉด?

-->  https://alim11.tistory.com/336

 

[GitHub & Git] ๊นƒํ—ˆ๋ธŒ์˜ Fork(ํฌํฌ) ๊ธฐ๋Šฅ ์‚ฌ์šฉํ•˜๊ธฐ

๐ŸŒˆ GitHub Fork (ํฌํฌ) ๊ธฐ๋Šฅ์ด๋ž€? ๊นƒํ—ˆ๋ธŒ์˜ fork(ํฌํฌ) ๊ธฐ๋Šฅ์€ ๋‹ค๋ฅธ ์‚ฌ์šฉ์ž์˜ ์ €์žฅ์†Œ(Repo #2)๋ฅผ ์ž์‹ ์˜ ๊ณ„์ •(Repo #1)์œผ๋กœ ๋ณต์ œํ•˜๋Š” ๊ธฐ๋Šฅ์ด๋‹ค. Fork๋ฅผ ํ†ตํ•ด ์ƒ์„ฑ๋œ ์ €์žฅ์†Œ(Repo #1)๋Š” ์›๋ณธ ์ €์žฅ์†Œ์™€ ๋…๋ฆฝ์ ์œผ

alim11.tistory.com

2.  ์šฐ์ธก ์ƒ๋‹จ์˜ ํ”„๋กœํ•„ ํด๋ฆญ  -->  'Your gists' ํด๋ฆญ

3.  'Create a gist' ํด๋ฆญ

4.  gist ์˜ Contents ๋ฅผ ์ฑ„์šด ๋’ค ๊ณต๊ฐœ ๋ฒ”์œ„๋ฅผ Public ์œผ๋กœ ์„ค์ •  -->  'Create public gist' ํด๋ฆญ

5.  ์ถœ๋ ฅ๋œ gist ์ฝ”๋“œ๋ฒˆํ˜ธ ์ €์žฅ

# gist ์ฝ”๋“œ๋ฒˆํ˜ธ
0cf6b1761d4d6a5c6d28c9d14447d736

 

6.  gist ๋ฅผ ์œ„ํ•œ ์ƒˆ๋กœ์šด Personal Access Tocken ์ƒ์„ฑ

# ํ•ญ๋ชฉ ์ค‘ ์ฒดํฌํ•ด์•ผ ํ•  ์š”์†Œ
1. repo
2. gist

 

 

 


 

++  Personal Access Tocken ์ƒ์„ฑ๋ฒ•์„ ์•Œ๊ณ  ์‹ถ๋‹ค๋ฉด?

-->  https://alim11.tistory.com/388

 

[GitHub & Git] GitHub(๊นƒํ—ˆ๋ธŒ) Personal Access Token ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•

๐Ÿ ํผ์Šค๋„ ์—‘์„ธ์Šค ํ† ํฐ(Personal Access Token) ์ด๋ž€? ๊นƒํ—ˆ๋ธŒ์˜ ํผ์Šค๋„ ์—‘์„ธ์Šค ํ† ํฐ(Personal Access Token)์€ ๊นƒํ—ˆ๋ธŒ(GitHub)์—์„œ ์ œ๊ณตํ•˜๋Š” ์ธ์ฆ ๋ฐฉ์‹ ์ค‘ ํ•˜๋‚˜๋กœ, ์‚ฌ์šฉ์ž๊ฐ€ ์ž์‹ ์˜ ๊ณ„์ •์„ ์ธ์ฆํ•˜๊ณ  API ์š”์ฒญ์„

alim11.tistory.com

7.  ๋‹ค์‹œ fork ํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋กœ ์ด๋™ํ•œ ํ›„ 'Settings' ํด๋ฆญ  -->  Secrets and variables ํƒญ์˜ 'Actions' ๋กœ ์ด๋™

 

 

8.  'New repository secret' ๋ฒ„ํŠผ ํด๋ฆญ

 

9.  ์•„๋ž˜์™€ ๊ฐ™์ด ์ด 2๊ฐœ์˜ Actions secrets ์ž‘์„ฑ (์ž‘์„ฑํ•œ ํ›„ Add secret ํด๋ฆญ)

 
 

++  ์ถ”๊ฐ€ ํ›„ ์•„๋ž˜์™€ ๊ฐ™์ด 2๊ฐœ์˜ ์š”์†Œ๊ฐ€ ๋‚˜ํƒ€๋‚˜์•ผ ํ•จ

10.  ๋‹ค์‹œ fork ํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋กœ ๋Œ์•„์™€ 'Actions' ํƒญ์œผ๋กœ ์ด๋™  -->  'I understand my workflows, go ahead and enable them' ํด๋ฆญ

 

11.  Update gist ์œผ๋กœ ์ด๋™ ํ›„ 'Enable workflow' ๋ฒ„ํŠผ ํด๋ฆญ

12.  fork ํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์˜ README.md ํŒŒ์ผ์˜ ๋‚ด์šฉ์„ ๋ชจ๋‘ ์‚ญ์ œ  -->  'Commit Changes' ํด๋ฆญ

13.  ๋‹ค์‹œ Actions ํƒญ์œผ๋กœ ์ด๋™ํ•œ ํ›„ workflow ์„ฑ๊ณต ์—ฌ๋ถ€ ํ™•์ธ

์œ„ ์ด๋ฏธ์ง€์™€ ๊ฐ™์ด ์ดˆ๋ก์ƒ‰ ์ฒดํฌํ‘œ์‹œ๊ฐ€ ๋ณด์—ฌ์•ผ ํ•จ!

14.  ๋ฉ”์ธ ํ”„๋กœํ•„๋กœ ๋Œ์•„์™€ 'Customize your pins' ํด๋ฆญ  -->  ์ƒ์„ฑ๋œ Gist ์„ ํƒ ํ›„ 'Save Pins' ํด๋ฆญ

15.  ์•„๋ž˜์™€ ๊ฐ™์ด Commit ์‹œ๊ฐ ํ†ต๊ณ„ํ‘œ๊ฐ€ ์ƒ์„ฑ๋œ ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Œ