์ƒˆ์†Œ์‹

DevOps/Git

[Git Error] fatal; detected dubious ownership in repository at ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

  • -

์˜ค๋Š˜์€ git push ์ค‘ ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ๊ณต์œ ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

์ €์˜ ๊ฒฝ์šฐ IntelliJ์—์„œ git push๋ฅผ ํ–ˆ๋”๋‹ˆ ๋ฐœ์ƒํ•˜์˜€์Šต๋‹ˆ๋‹ค.

 

์—๋Ÿฌ๋ช…

fatal: detected dubious ownership in repository at

์—๋Ÿฌ๋ฅผ ์ž˜ ์ฝ์–ด๋ณด๋‹ˆ dubious ownership ์ด๋ผ๋Š” ์›Œ๋”ฉ์„ ๋ดค์„ ๋•Œ ์†Œ์œ ๊ถŒ ๊ด€๋ จํ•ด์„œ ๋ฌผ์–ด๋ณด๋Š” ๋“ฏ ํ•ฉ๋‹ˆ๋‹ค.

๊ฒ€์ƒ‰์„ ํ•ด๋ณด๋‹ˆ ์•ˆ์ „ํ•œ ํด๋”๋กœ ์ง€์ •ํ•˜๋ฉด ํ•ด๊ฒฐ๋  ์ˆ˜ ์žˆ๋‹ค๊ณ  ํ•˜์—ฌ safe.directory ๋ช…๋ น์–ด๋กœ ๋Œ€์‘ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

 

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

git config --global --add safe.directory ํ”„๋กœ์ ํŠธ๊ฒฝ๋กœ

ex) git config --global --add safe.directory D:/intelliJProject/ogx4/Springboot-jpa-noticeboard-sp

 

Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ˜Š

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๐Ÿ‘