๐Ÿ”ฅTIL๐Ÿ”ฅ์ŠคํŒŒ๋ฅดํƒ€ | forkํ•œ repository์˜ ์ปค๋ฐ‹์œผ๋กœ ์ž”๋”” ์‹ฌ๊ธฐ

hyihyiยท2024๋…„ 2์›” 20์ผ
0

TIL

๋ชฉ๋ก ๋ณด๊ธฐ
52/70
post-thumbnail

๐Ÿšจ ๊ฒฐ๋ก  : fork๋ฅผ ํ•˜์ง€ ์•Š์•„๋„ ๋œ๋‹ค!!!!

fork๋ฅผ ํ–ˆ์œผ๋ฉด ์‚ญ์ œํ•˜์ž

๐Ÿค” repository๋ฅผ forkํ–ˆ์„ ๋•Œ ์ž”๋””๊ฐ€ ์‹ฌ๊ธฐ์ง€ ์•Š๋Š” ๋ฌธ์ œ

ํŒ€๊ณผ์ œ์˜ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๊ฐœ์ธ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋กœ fork๋ฅผ ํ•˜๊ณ  ์ˆ˜์ •ํ–ˆ์„ ๋•Œ ์ž”๋””๊ฐ€ ์‹ฌ๊ธฐ์ง€ ์•Š์•˜๋‹ค.

์•„๋ž˜๋Š” ์ž”๋””๋ฅผ ์‹ฌ๊ธฐ ์œ„ํ•ด์„œ ์ถฉ์กฑ๋˜์–ด์•ผ ํ•˜๋Š” ์š”๊ฑด๋“ค์ด๋‹ค.

  • GitHub ๊ณ„์ •๊ณผ commit ์ด๋ฉ”์ผ ๊ณ„์ •์ด ๋™์ผํ•˜๊ฑฐ๋‚˜
  • commit์ด Forkํ•œ repository๊ฐ€ ์•„๋‹Œ ๋‚˜๋งŒ์˜ repository์—์„œ ์ด๋ฃจ์–ด์ ธ์•ผ ํ•œ๋‹ค

๋Œ€๋ถ€๋ถ„ ์•„๋ž˜์˜ ๊ฒฝ์šฐ์— ํ•ด๋‹นํ•ด ์ž”๋””๊ฐ€ ์‹ฌ์–ด์ง€์ง€ ์•Š๋Š”๋‹ค.

๐Ÿ˜ฏ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

fork ์—†์ด repository๋ฅผ ๊นƒํ—ˆ๋ธŒ๋กœ ๋ณต์‚ฌํ•ด์˜ค๋ฉด ๋œ๋‹ค.
๋ณต์‚ฌ"ํ• " ๋ ˆํฌ์ง€ํ† ๋ฆฌ(MomenTravel.git)์™€ ๋ณต์‚ฌ"ํ•ด์˜ฌ" ๋ ˆํฌ์ง€ํ† ๋ฆฌ(MomenTravel_my.git)๋ฅผ ๊ตฌ๋ณ„ํ•˜์ž

1. github์— ์ƒˆ๋กœ์šด ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๋งŒ๋“ ๋‹ค.

TodayTrip.git

2. ๋ณต์‚ฌํ•˜๊ณ  ์‹ถ์€ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์˜ ์ฃผ์†Œ๋ฅผ copyํ•œ๋‹ค.

https://github.com/TodayTrip/TodayTrip.git

3. terminal์—์„œ copyํ•œ forked repository๋ฅผ bare cloneํ•œ๋‹ค.

4. ๋ณต์‚ฌํ•  ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋กœ ์ด๋™

1) ๋ช…๋ น์–ด ls๋กœ ๋ณต์‚ฌํ•  ๋ ˆํฌ์ง€ํ† ๋ฆฌ ํ™•์ธ

ls

2) ๋ณต์‚ฌํ•  ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋กœ ์ด๋™

cd TodayTrip.git/

5. ๋ณต์‚ฌํ•  ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋กœ mirror-push

git push --mirror https://github.com/kimnahee1529/TodayTrip.git

๐Ÿ’กcommit ๋‚ด์—ญ์ด ๋ฐ˜์˜์ด ๋˜์ง€ ์•Š๋Š”๋‹ค๋ฉด default ๋ธŒ๋žœ์น˜๊ฐ€ ์–ด๋Š ๋ธŒ๋žœ์น˜๋กœ ๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•ด๋ณด์ž!

profile
๋‚ด๊ฐ€ ์ดํ•ดํ•˜๊ธฐ ์‰ฝ๊ฒŒ ์“ฐ๋Š” ๋ธ”๋กœ๊ทธ

0๊ฐœ์˜ ๋Œ“๊ธ€