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

๐Ÿˆ‍โฌ› Git5

[Github] git mv : ํŒŒ์ผ๋ช… ์†Œ๋ฌธ์ž <-> ๋Œ€๋ฌธ์ž ๋กœ ๋ณ€๊ฒฝํ•˜๊ธฐ ๋ฌธ์ œ์ƒํ™ฉ์œ ํŠœ๋ธŒ ํด๋ก  ํ”„๋กœ์ ํŠธ์ค‘ ์‹ค์ˆ˜๋กœ shorts.js๋ผ๋Š” ํŒŒ์ผ์„ ์†Œ๋ฌธ์ž๋กœ ์˜ฌ๋ ธ๋‹ค. ๊ทธ๋ž˜์„œ shorts๋ผ๋Š” ํŒŒ์ผ์„ ๋กœ์ปฌ์ƒ์—์„œ ๋Œ€๋ฌธ์ž๋กœ ๋ฐ”๊พธ์–ด ๋‹ค์‹œ commit ํ–ˆ๋Š”๋ฐ์™ผ์ชฝ์ด ๊นƒํ—ˆ๋ธŒ ์›๊ฒฉ์ €์žฅ์†Œ์ด๊ณ , ์˜ค๋ฅธ์ชฝ์ด ๋กœ์ปฌ ์ €์žฅ์†Œ์ด๋‹ค.๋กœ์ปฌ์€ ๋ฐ”๋€Œ์—ˆ์ง€๋งŒ ๊นƒํ—ˆ๋ธŒ๋Š” ๋ฐ”๋€Œ์ง€ ์•Š์•˜๋‹ค. shorts.js์˜ ๋‚ด์šฉ์„ ๋ฐ”๊ฟจ๋Š”๋ฐ๋„ ๋ง์ด๋‹ค.. ์ด๋Ÿด๋•Œ๋Š” ๊ทธ๋ƒฅ ์ปค๋ฐ‹ํ•˜๋ฉด ์•ˆ๋œ๋‹ค. ๋Œ€์†Œ๋ฌธ์ž๊ฐ€ ์•ˆ๋ฐ”๋€Œ๋Š” ์ด์œ ๋Œ€์†Œ๋ฌธ์ž๋ฅผ ๊ตฌ๋ถ„ํ•˜์ง€ ์•Š๋Š” ์šด์˜ ์ฒด์ œ(์˜ˆ: Windows ๋˜๋Š” macOS)์‹œ์Šคํ…œ์˜ ํŠน์„ฑ ๋•Œ๋ฌธ์ด๋ผ๊ณ  ํ•œ๋‹ค.ํŠนํžˆ macOS์˜ ํŒŒ์ผ ์‹œ์Šคํ…œ์€ ๊ธฐ๋ณธ์ ์œผ๋กœ ๋Œ€์†Œ๋ฌธ์ž ๊ตฌ๋ถ„์ด ์—†๋Š” HFS+ ๋˜๋Š” APFS๋กœ ์„ค์ •์ด ๋˜์–ด์žˆ๋Š”๋ฐ์ด๋Ÿฐ ํ™˜๊ฒฝ์—์„œ๋Š” ํŒŒ์ผ ์ด๋ฆ„์˜ ๋Œ€์†Œ๋ฌธ์ž๋งŒ ๋ณ€๊ฒฝํ•˜๋Š” ์‚ฌํ•ญ์ด Git์—์„œ๋Š” ์ธ์‹์ด ๋˜์ง€ ์•Š์„์ˆ˜ ๋„์žˆ๋‹ค. ํ•ด๊ฒฐ์ฑ… : git mv 1. ๋ฐ”๊พธ๊ณ ์ž ํ•˜๋Š”.. 2024. 12. 21.
[Github] ! [rejected] main -> main (fetch first) ์˜ค๋ฅ˜ ํ•ด๊ฒฐ (๋™๊ธฐํ™” ๋ฌธ์ œ) ์ƒˆ๋กœ์šด ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๊ณ , ๊นƒํ—ˆ๋ธŒ์— push ํ•˜๋ ค๊ณ  ํ•˜๋Š”๋ฐ ๋˜ ์˜ค๋ฅ˜๊ฐ€ ๋‚œ๊ฒƒ์ด๋‹ค.๊ฐ€์ง€๊ฐ์ƒ‰ ์˜ค๋ฅ˜๊ฐ€ ์ •๋ง ์ž˜ ๋ณด์ธ๋‹ค. ์™œ์ด๋ ‡๊ฒŒ ์˜ˆ๋ฏผํ•ด!!!!!!!!!!!!!!!!! ๋ฌธ์ œ๋Š” ๊ทธ๊ฑฐ์˜€๋‹ค. ์›๊ฒฉ ์ €์žฅ์†Œ์™€ ๋กœ์ปฌ ์ €์žฅ์†Œ๊ฐ€ ๋‹ฌ๋ผ์„œ (๋‚ด์šฉ์ด ๋‹ฌ๋ผ์„œ) ๋ฐœ์ƒํ•œ ์˜ค๋ฅ˜์ธ๊ฒƒ.๋‚˜์˜ ๊ฒฝ์šฐ์—๋Š” ๋งจ ์ฒ˜์Œ ํŒŒ์ผ์„ pushํ•˜๊ณ , ๊นƒํ—ˆ๋ธŒ๋กœ READEME.md ํŒŒ์ผ์„ ์ˆ˜์ •ํ–ˆ๋Š”๋ฐ,๊ทธ๊ฒŒ ๋‚ด ์ปดํ“จํ„ฐ์—๋Š” ์—†์–ด์„œ ์˜ค๋ฅ˜๊ฐ€ ๋‚œ๊ฒƒ. ์ฆ‰, ๊นƒํ—ˆ๋ธŒ์—๋Š” READEME.md๊ฐ€ ์žˆ์ง€๋งŒ, ๋กœ์ปฌ์—๋Š” READEME.md๊ฐ€ ์—†์–ด์„œ๊นƒํ—ˆ๋ธŒ๊ฐ€ ๋‚˜ ์ด๊ฑฐ push ๋ฐ›์„ ์ˆ˜ ์—†์ช™. ํ•˜๊ณ  ๋ฐœ์ƒํ•œ ์˜ค๋ฅ˜์ธ๊ฒƒ์ด๋‹ค.. ํ•ด๊ฒฐ๋ฒ•์€๋™๊ธฐํ™” ์‹œ์ผœ์ฃผ๋ฉด ๋œ๋‹ค.์–ด๋–ป๊ฒŒ?pull ๋กœ ๋Œ์–ด์˜ค๋ฉด ๋œ๋‹ค.git pull --rebase origin main์ด ์ฝ”๋“œ ์ž…๋ ฅ ํ›„, ๋‹ค์‹œ push ํ•˜๋ฉด ์ปค๋ฐ‹์ด ๋œ๋‹ค. ์•„๋‹ˆ๋ฉด ์•ž์— .. 2024. 11. 17.
[Github] ํ† ํฐ ์ธ์ฆ ์—๋Ÿฌ ํ•ด๊ฒฐ remote: Support for password authentication was removed on August 13, 2021. remote: Please see for information on currently recommended modes of authentication. fatal: Authentication failed for ์š”์•ฝ : ๋น„๋ฐ€๋ฒˆํ˜ธ ๋ง๊ณ  ํ† ํฐ์„ ์ž…๋ ฅํ•ด์•ผ ํ•œ๋‹ค.๋งฅ๋ถ์œผ๋กœ ๊นƒํ—ˆ๋ธŒ์— ์ปค๋ฐ‹ํ•˜๋ ค๊ณ  ํ•˜๋Š”๋ฐgit push -u origin main์ด๊ฒŒ ์•ˆ๋จน๋Š”๊ฒƒ์ด๋‹ค.. ์‚ฌ์‹ค ์•ž์—์„œ ๋งฅ๋ถ์— ๊นƒํ—ˆ๋ธŒ๋ฅผ ์„ค์น˜ํ•˜๊ณ ,, (๐Ÿบ ์ฒ˜์Œ๋ณธ๋‹ค ์ด๊ฑฐ. ๋งฅ๋ถ์€ ์ข€ ๋‹ค๋ฅด๊ตฌ๋‚˜)๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์—ฐ๊ฒฐํ•˜๋Š” ๊ณผ์ •์—์„œ ์—ฐ๊ฒฐ์ด ์•ˆ๋˜๋Š” ์ž์ž˜ํ•œ ์˜ค๋ฅ˜๊ฐ€ ์žˆ์–ด ํด๋”๋ฅผ ํ•œ๋ฒˆ ์‚ญ์ œํ–ˆ๋‹ค๊ฐ€git initgit branch -m maingit remote add origin "์ฃผ์†Œ"git add .git commit -m "๋ญ์ ์–ด"git push -u origin main์ด ์ˆœ์„œ๋กœ ๋ช…๋ น์–ด๋ฅผ ์ž‘์„ฑํ•ด์„œ ์˜ค๋ฅ˜๋ฅผ ํ•ด๊ฒฐํ•˜๊ธด ํ–ˆ๋Š”๋ฐ, ๋”ฑ git push -u origin main ์—ฌ๊ธฐ์„œremote: Support for password authentication was removed on Augu.. 2024. 11. 16.
[Github] ๊นƒํ—ˆ๋ธŒ๋ฅผ ๊พธ๋ช„๋‹ค ์‚ฌ๋žŒ๋“ค์€ ์–ด๋–ป๊ฒŒ ์ €๋ ‡๊ฒŒ ์ด์˜๊ฒŒ ํ•˜์ง€ ํ•˜๊ณ  ๊ฒ๋ƒˆ๋Š”๋ฐ์ƒ๊ฐ๋ณด๋‹ค ๋งŒ๋“ค๊ธฐ ์‰ฌ์› ๋‹ค! ๊ฒ€์ƒ‰ํ•˜๋ฉด ์นœ์ ˆํ•œ ์„ค๋ช…๋“ค์ด ํ•œ๊ฐ€๋“ํ•ด์„œ ๋‚˜๋„ ๋งŒ๋“ค์–ด๋ณด์•˜๋‹ค..ใ…Žใ…Ž์งฑ์งฑ ๋ง˜์—๋“ ๋‹ค! ์—ด์‹ฌํžˆ ํ•ด์•ผ์ง•~ 2024. 9. 13.
[Github] ํ˜‘์—…๊ณผ git clone, ๊ณผ fatal: '๋ธŒ๋žœ์น˜์ด๋ฆ„'could be both a local file and a tracking branch. ๊นƒํ—ˆ๋ธŒ๋กœ ํ˜‘์—…์„ ํ•ด์•ผํ•ด์„œ ๋‹ค๋ฅธ ํŒ€์›์˜ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋ฅผ ๋“ค๊ณ  ์™€์„œ ๊ทธ๊ณณ์— ์—…๋กœ๋“œ ํ•ด์•ผํ–ˆ๋‹ค. ์‹œ์ž‘๋ถ€ํ„ฐ ๊ฝค ๋‚œ๊ด€์ด์—ˆ์–ด์„œ ๋‹ค์Œ์— ๋˜ ์—๋Ÿฌ๊ฐ€ ๋‚  ๊ฒฝ์šฐ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด์„œ ๊ธฐ๋กํ•œ๋‹ค. 1. ๊นƒํ—ˆ๋ธŒ๋กœ ํ˜‘์—…ํ•˜๊ธฐ : git clone 1. ํŒŒ์ผ์„ ์ €์žฅํ•  ํด๋”๋ฅผ ํ•˜๋‚˜ ๋งŒ๋“ ๋‹ค. 2. cmd์ฐฝ์„ ์—ฐ๋‹ค. โ“ cd ํŒŒ์ผ ๊ฒฝ๋กœ ์ž…๋ ฅ โ“‘ git clone '์—ฐ๊ฒฐํ•  ULR' ๊ทธ๋Ÿฌ๋ฉด ํด๋”์— ์—ฌ๊ธฐ ๊นƒํ—ˆ๋ธŒ์—์„œ ๋ฐ›์•„์˜จ ํด๋”๊ฐ€ ํ•˜๋‚˜ ์ƒ์„ฑ๋œ๋‹ค. โ“’ npm install โ““ git pull ' URL' (๋ธŒ๋žœ์น˜ ์ด๋ฆ„) (ex. git pull https://github.com/์–ด์ฉŒ๊ตฌ/git develop) ๋ฉ”์ธ์— ์˜ฌ๋ฆฌ๊ธฐ ์ „์— develop ๋ธŒ๋žœ์น˜์— ์—…๋กœ๋“œ ํ•ด์•ผํ•ด์„œ develop์„ pullํ•ด์™”๋‹ค. ์ด๋Ÿฐ์‹์œผ๋กœ ์ž‘์„ฑํ•˜๊ณ  npm startํ•ด๋ณด๋ฉด ์™„๋ฃŒ. ๋ฌด์‚ฌํžˆ ํŒ€.. 2023. 8. 23.