---
title: "Discussion on \"Git Repository 限制使用者存取\" | Hashnode"
description: "Discussion on \"Git Repository 限制使用者存取\". 起源\n四月後新開的 Linux 20.04 的機器，假如有不同使用者使用到同一個地方的 Git Repository，那就會出現這個錯誤訊息：\nfatal: unsafe repository ('/path/to/repo' is owned by someone else)\nTo add an exception for this directory, call:\n\n\tgit config -"
url: "https://hashnode.com/posts/git-repository-restrict-user/62753603dc122f5a4f21c369"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Git Repository 限制使用者存取](https://notes.mukyu.dev/git-repository-restrict-user?utm_source=hashnode&utm_medium=feed)

起源 四月後新開的 Linux 20.04 的機器，假如有不同使用者使用到同一個地方的 Git Repository，那就會出現這個錯誤訊息： fatal: unsafe repository ('/path/to/repo' is owned by someone else) To add an exception for this directory, call: git config -

May 6, 2022 · 2 min read · notes.mukyu.dev  
Updated Oct 27  
Read the article

-   [#git](https://hashnode.com/tag/git)

## Written by

[Patchouli](https://hashnode.com/@mudream4869)

@mudream4869 · Uohout

  
[View profile](https://hashnode.com/@mudream4869)

工程師帕秋莉~

後端工程師。 不定時張貼一些寫扣時的筆記，有時英文，有時中文。 「如果，我是魔女的話...」

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
