GIT 3

[git] ์—ฐ๊ด€ ์—†๋Š” ์ปค๋ฐ‹ ๋ณ‘ํ•ฉ ์˜ค๋ฅ˜ | fatal: refusing to merge unrelated histories

๋ฌธ์ œ ์ƒํ™ฉ ๋กœ์ปฌ์— ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ git init + init commit ๊นƒํ—ˆ๋ธŒ์—์„œ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ƒ์„ฑ + readme initial commit ๋‘ ๊ฐœ์˜ ์„œ๋กœ ๋‹ค๋ฅธ ์‹œ์ž‘์  commit์œผ๋กœ ๋จธ์ง€ ๋ถˆ๊ฐ€๋Šฅ ์—๋Ÿฌ ๋ฉ”์„ธ์ง€ fatal : refusing to merge unrelated histories. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ์„œ๋กœ ๊ด€๋ จ ์—†๋Š” ์ปค๋ฐ‹์˜ ๋จธ์ง€ ํ—ˆ์šฉ ๋ช…๋ น์–ด ์ ์šฉ --allow-unrelated-histories ex.) ๋จธ์ง€ ์ปค๋ฐ‹ i ) vim edit mode ๋ฉ”์„ธ์ง€ ์ž‘์„ฑ esc ) to quit input mode :wq ) save(wrote) and quiet ํ•ด๊ฒฐ ์™„๋ฃŒ ์ฐธ๊ณ  https://gdtbgl93.tistory.com/63 Git push๊ฐ€ ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ (fatal: refusing to merge ..

Error-log 2024.03.18

[React] Vite + React + TS ๊ฐœ๋ฐœ ์„œ๋ฒ„ ๊ตฌ์ถ•

Node.js ์„ค์น˜ Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org Node.js ์„ค์น˜ ํ™•์ธ node -v Vite : ๊ฐœ๋ฐœํ™˜๊ฒฝ ๊ตฌ์„ฑ Vite Vite, ์ฐจ์„ธ๋Œ€ ํ”„๋ŸฐํŠธ์—”๋“œ ๊ฐœ๋ฐœ ํˆด ko.vitejs.dev npm create vite@latest - Projet name - framework : React - variat : TypeScript + SWC ( SWC: Rust typescript ์ปดํŒŒ์ผ๋Ÿฌ) ๊ธฐ๋ณธ์„ค์ • ์ฃผ์ž… npm i - react, react dom, typescript, vite...etc (package.json) ์ •์ƒ ์ž‘๋™ ํ™•์ธ npm run dev git ์—ฐ๊ฒฐ git ..

React 2024.02.26

[Sourcetree] ERR: This is not a valid working copy path.

์ƒํ™ฉ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ํ›„, ์†Œ์ŠคํŠธ๋ฆฌ์— Addํ•˜์—ฌ ์—ฐ๊ฒฐํ•˜๋ ค๋˜ ์ƒํ™ฉ์— ์˜ค๋ฅ˜ ๋ฐœ์ƒ ์—๋Ÿฌ ๋ฉ”์„ธ์ง€ This is not a valid working copy path. (์ ํ•ฉํ•œ ์ž‘์—…์ค‘์ธ ๋ณต์‚ฌ๋ณธ ๊ฒฝ๋กœ๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค.) ์›์ธ Git ์ €์žฅ์†Œ๊ฐ€ ์•„๋‹Œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ Sourcetree์— ์ถ”๊ฐ€ํ•˜๋ ค๊ณ  ํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋œ๋‹ค. ๋กœ์ปฌ ์ €์žฅ์†Œ๋ฅผ ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด ๋จผ์ € Git init ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ Git ์ €์žฅ์†Œ๋กœ ์‹œ์ž‘ํ•ด์•ผํ•œ๋‹ค. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ์ฐธ์กฐ https://community.atlassian.com/t5/Sourcetree-questions/This-is-not-a-valid-working-copy-path/qaq-p/1078186

Error-log 2023.11.27