Temporarily lock a git repository

前端 未结 3 871
悲&欢浪女
悲&欢浪女 2021-02-20 17:17

Do you know if there is a way to block committing to a local git repository? In my build environment, I\'m running some git commands through it and it breaks if the user makes

3条回答
  •  一个人的身影
    2021-02-20 17:59

    You should clone the repository and do your work in the fork.
    Forks on the local disk can use symlinks to save time and space.

    Git does not have any notion of a lock.

提交回复
热议问题